diff options
author | 2016-07-21 08:52:09 -0400 | |
---|---|---|
committer | 2016-07-21 08:52:09 -0400 | |
commit | bcfb0465a3eda584f2dcef5585117a6aaac83ff8 (patch) | |
tree | 51ebed79663a384b1c8c8fd6dce60287ac3efca5 | |
parent | --read-write rework (diff) | |
download | firejail-bcfb0465a3eda584f2dcef5585117a6aaac83ff8.tar.gz firejail-bcfb0465a3eda584f2dcef5585117a6aaac83ff8.tar.zst firejail-bcfb0465a3eda584f2dcef5585117a6aaac83ff8.zip |
audit fixes
-rw-r--r-- | src/faudit/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/faudit/main.c b/src/faudit/main.c index 72c386cd1..6ff938d98 100644 --- a/src/faudit/main.c +++ b/src/faudit/main.c | |||
@@ -38,8 +38,9 @@ int main(int argc, char **argv) { | |||
38 | // extract program name | 38 | // extract program name |
39 | prog = realpath(argv[0], NULL); | 39 | prog = realpath(argv[0], NULL); |
40 | if (prog == NULL) { | 40 | if (prog == NULL) { |
41 | fprintf(stderr, "Error: cannot extract the path of the audit program\n"); | 41 | prog = strdup("faudit"); |
42 | return 1; | 42 | if (!prog) |
43 | errExit("strdup"); | ||
43 | } | 44 | } |
44 | printf("INFO: starting %s.\n", prog); | 45 | printf("INFO: starting %s.\n", prog); |
45 | 46 | ||
@@ -67,11 +68,11 @@ int main(int argc, char **argv) { | |||
67 | // dbus | 68 | // dbus |
68 | dbus_test(); | 69 | dbus_test(); |
69 | printf("\n"); | 70 | printf("\n"); |
70 | 71 | ||
71 | // /dev test | 72 | // /dev test |
72 | dev_test(); | 73 | dev_test(); |
73 | printf("\n"); | 74 | printf("\n"); |
74 | 75 | ||
75 | free(prog); | 76 | free(prog); |
76 | printf("--------------------------------------------------------------------------------\n"); | 77 | printf("--------------------------------------------------------------------------------\n"); |
77 | 78 | ||