diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/main.c | 3 | ||||
-rw-r--r-- | src/firejail/profile.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 41517877b..8076a8146 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -765,7 +765,8 @@ int main(int argc, char **argv) { | |||
765 | exit(1); | 765 | exit(1); |
766 | } | 766 | } |
767 | // ... and configure it | 767 | // ... and configure it |
768 | cfg.profile_ignore[j] = argv[i] + 9; | 768 | else |
769 | cfg.profile_ignore[j] = argv[i] + 9; | ||
769 | } | 770 | } |
770 | #ifdef HAVE_CHROOT | 771 | #ifdef HAVE_CHROOT |
771 | else if (strncmp(argv[i], "--chroot=", 9) == 0) { | 772 | else if (strncmp(argv[i], "--chroot=", 9) == 0) { |
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index de89cf40f..6ac7cbe62 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -93,7 +93,9 @@ int profile_check_line(char *ptr, int lineno) { | |||
93 | exit(1); | 93 | exit(1); |
94 | } | 94 | } |
95 | // ... and configure it | 95 | // ... and configure it |
96 | cfg.profile_ignore[j] = str; | 96 | else |
97 | cfg.profile_ignore[j] = str; | ||
98 | |||
97 | return 0; | 99 | return 0; |
98 | } | 100 | } |
99 | 101 | ||