зеркало из https://github.com/mozilla/libaudit-go.git
Merge pull request #40 from lzakharov/fix-rules-check-path
Fix rules checkPath error printing
This commit is contained in:
Коммит
6f76c4a779
2
rules.go
2
rules.go
|
@ -641,7 +641,7 @@ func checkPath(pathName string) error {
|
|||
return fmt.Errorf("path %q too large", pathName)
|
||||
}
|
||||
if pathName[0] != '/' {
|
||||
return fmt.Errorf("path %q must be absolute")
|
||||
return fmt.Errorf("path %q must be absolute", pathName)
|
||||
}
|
||||
if strings.Contains(pathName, "..") {
|
||||
return fmt.Errorf("path %q cannot contain special directory values", pathName)
|
||||
|
|
Загрузка…
Ссылка в новой задаче