Re: [apparmor] [PATCH v2] parser: Return non-zero when the given path is invalid

2017-05-12 Thread Christian Boltz
Hello, Am Freitag, 12. Mai 2017, 00:58:32 CEST schrieb Tyler Hicks: ... > diff --git a/parser/parser_main.c b/parser/parser_main.c > index 80c243d..8f1af4f 100644 > --- a/parser/parser_main.c > +++ b/parser/parser_main.c > @@ -1159,6 +1159,7 @@ int main(int argc, char *argv[]) >

[apparmor] [PATCH v2] parser: Return non-zero when the given path is invalid

2017-05-11 Thread Tyler Hicks
Christian reported that `apparmor_parser -r /file/not/found` returns 0 indicating that the profile was loaded as expected even though /file/not/found does not exist in the filesystem. This patch ensures that a non-zero error code is returned when a specified file or directory is not found, can't