diff options
author | 2016-05-31 20:55:14 -0400 | |
---|---|---|
committer | 2016-05-31 20:55:14 -0400 | |
commit | 58df5c0605ba63fb435836cde9f8614c968fe648 (patch) | |
tree | bdd8b672039a89dfb64e2feb1612c5882f63b354 /src/firejail | |
parent | fixed --net and --overlay problem (diff) | |
download | firejail-58df5c0605ba63fb435836cde9f8614c968fe648.tar.gz firejail-58df5c0605ba63fb435836cde9f8614c968fe648.tar.zst firejail-58df5c0605ba63fb435836cde9f8614c968fe648.zip |
fix --quiet
Diffstat (limited to 'src/firejail')
-rw-r--r-- | src/firejail/main.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index 955bd36bf..607637802 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -710,6 +710,20 @@ int main(int argc, char **argv) { | |||
710 | if (*argv[0] != '-') | 710 | if (*argv[0] != '-') |
711 | run_symlink(argc, argv); | 711 | run_symlink(argc, argv); |
712 | 712 | ||
713 | // detect --quiet | ||
714 | for (i = 1; i < argc; i++) { | ||
715 | if (strcmp(argv[i], "--quiet") == 0) { | ||
716 | arg_quiet = 1; | ||
717 | break; | ||
718 | } | ||
719 | |||
720 | // detect end of firejail params | ||
721 | if (strcmp(argv[i], "--") == 0) | ||
722 | break; | ||
723 | if (strncmp(argv[i], "--", 2) != 0) | ||
724 | break; | ||
725 | } | ||
726 | |||
713 | // check if we already have a sandbox running | 727 | // check if we already have a sandbox running |
714 | EUID_ROOT(); | 728 | EUID_ROOT(); |
715 | int rv = check_kernel_procs(); | 729 | int rv = check_kernel_procs(); |
@@ -752,6 +766,8 @@ int main(int argc, char **argv) { | |||
752 | found = 1; | 766 | found = 1; |
753 | break; | 767 | break; |
754 | } | 768 | } |
769 | |||
770 | // detect end of firejail params | ||
755 | if (strcmp(argv[i], "--") == 0) | 771 | if (strcmp(argv[i], "--") == 0) |
756 | break; | 772 | break; |
757 | if (strncmp(argv[i], "--", 2) != 0) | 773 | if (strncmp(argv[i], "--", 2) != 0) |