diff options
Diffstat (limited to 'src')
-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 | ||