diff options
Diffstat (limited to 'src/firecfg')
-rw-r--r-- | src/firecfg/main.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/firecfg/main.c b/src/firecfg/main.c index 604b12633..40493159e 100644 --- a/src/firecfg/main.c +++ b/src/firecfg/main.c | |||
@@ -314,17 +314,19 @@ static void set_links_homedir(const char *homedir) { | |||
314 | if (!exec) | 314 | if (!exec) |
315 | errExit("strdup"); | 315 | errExit("strdup"); |
316 | char *ptr = strrchr(exec, '.'); | 316 | char *ptr = strrchr(exec, '.'); |
317 | if (!ptr) { | 317 | if (!ptr) |
318 | free(exec); | 318 | goto next; |
319 | continue; | 319 | if (strcmp(ptr, ".profile") != 0) |
320 | } | 320 | goto next; |
321 | if (strcmp(ptr, ".profile") != 0) { | ||
322 | free(exec); | ||
323 | continue; | ||
324 | } | ||
325 | 321 | ||
326 | *ptr = '\0'; | 322 | *ptr = '\0'; |
323 | if (in_ignorelist(exec)) { | ||
324 | printf(" %s ignored\n", exec); | ||
325 | goto next; | ||
326 | } | ||
327 | |||
327 | set_file(exec, FIREJAIL_EXEC); | 328 | set_file(exec, FIREJAIL_EXEC); |
329 | next: | ||
328 | free(exec); | 330 | free(exec); |
329 | } | 331 | } |
330 | closedir(dir); | 332 | closedir(dir); |