diff options
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r-- | src/firejail/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 0def00fa8..8d11caef3 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -712,7 +712,11 @@ int main(int argc, char **argv) { | |||
712 | arg_noprofile = 1; | 712 | arg_noprofile = 1; |
713 | } | 713 | } |
714 | else if (strncmp(argv[i], "--ignore=", 9) == 0) { | 714 | else if (strncmp(argv[i], "--ignore=", 9) == 0) { |
715 | char *ptr = argv[i] + 9; | 715 | if (custom_profile) { |
716 | fprintf(stderr, "Error: please use --profile after --include\n"); | ||
717 | exit(1); | ||
718 | } | ||
719 | |||
716 | if (*(argv[i] + 9) == '\0') { | 720 | if (*(argv[i] + 9) == '\0') { |
717 | fprintf(stderr, "Error: invalid ignore option\n"); | 721 | fprintf(stderr, "Error: invalid ignore option\n"); |
718 | exit(1); | 722 | exit(1); |