mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
chore: correct misspelled english words
This commit is contained in:
parent
120db25fc6
commit
aa58062eb6
@ -599,7 +599,7 @@ func (f *AppArmorProfileFile) parsePreamble(preamble string) error {
|
||||
|
||||
// Parse an apparmor profile file.
|
||||
//
|
||||
// Warning: It is purposelly an uncomplete basic parser for apparmor profile,
|
||||
// Warning: It is purposely an uncomplete basic parser for apparmor profile,
|
||||
// it is only aimed for internal tooling purpose. For "simplicity", it is not
|
||||
// using antlr / participle. It is only used for experimental feature in the
|
||||
// apparmor.d project.
|
||||
|
@ -176,7 +176,7 @@ func (p *Path) IsAbs() bool {
|
||||
return filepath.IsAbs(p.path)
|
||||
}
|
||||
|
||||
// ToAbs transofrm the current Path to the corresponding absolute path
|
||||
// ToAbs transform the current Path to the corresponding absolute path
|
||||
func (p *Path) ToAbs() error {
|
||||
abs, err := filepath.Abs(p.path)
|
||||
if err != nil {
|
||||
@ -552,7 +552,7 @@ func (p *Path) String() string {
|
||||
// Canonical return a "canonical" Path for the given filename.
|
||||
// The meaning of "canonical" is OS-dependent but the goal of this method
|
||||
// is to always return the same path for a given file (factoring out all the
|
||||
// possibile ambiguities including, for example, relative paths traversal,
|
||||
// possible ambiguities including, for example, relative paths traversal,
|
||||
// symlinks, drive volume letter case, etc).
|
||||
func (p *Path) Canonical() *Path {
|
||||
canonical := p.Clone()
|
||||
|
Loading…
Reference in New Issue
Block a user