diff options
author | 2021-10-20 20:07:17 -0400 | |
---|---|---|
committer | 2021-10-20 20:07:17 -0400 | |
commit | d9403dcdc8cfb23d5350b0488817a5eaa5a0f20d (patch) | |
tree | 1a6a7318ad5521cc5eeec24453241708892ebb73 /src | |
parent | --noprinter option (diff) | |
download | firejail-d9403dcdc.tar.gz firejail-d9403dcdc.tar.zst firejail-d9403dcdc.zip |
small fix
Diffstat (limited to 'src')
-rw-r--r-- | src/firejail/main.c | 2 | ||||
-rw-r--r-- | src/firejail/profile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c index f3c54e1ef..1ba70b0bd 100644 --- a/src/firejail/main.c +++ b/src/firejail/main.c | |||
@@ -2156,7 +2156,7 @@ int main(int argc, char **argv, char **envp) { | |||
2156 | arg_novideo = 1; | 2156 | arg_novideo = 1; |
2157 | else if (strcmp(argv[i], "--no3d") == 0) | 2157 | else if (strcmp(argv[i], "--no3d") == 0) |
2158 | arg_no3d = 1; | 2158 | arg_no3d = 1; |
2159 | else if (strcmp(argv[i], "--noprinter") == 0) { | 2159 | else if (strcmp(argv[i], "--noprinters") == 0) { |
2160 | profile_add("blacklist /dev/lp*"); | 2160 | profile_add("blacklist /dev/lp*"); |
2161 | profile_add("blacklist /run/cups/cups.sock"); | 2161 | profile_add("blacklist /run/cups/cups.sock"); |
2162 | } | 2162 | } |
diff --git a/src/firejail/profile.c b/src/firejail/profile.c index 7ffb10be1..babc3941e 100644 --- a/src/firejail/profile.c +++ b/src/firejail/profile.c | |||
@@ -449,7 +449,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) { | |||
449 | arg_no3d = 1; | 449 | arg_no3d = 1; |
450 | return 0; | 450 | return 0; |
451 | } | 451 | } |
452 | else if (strcmp(ptr, "noprinter") == 0) { | 452 | else if (strcmp(ptr, "noprinters") == 0) { |
453 | profile_add("blacklist /dev/lp*"); | 453 | profile_add("blacklist /dev/lp*"); |
454 | profile_add("blacklist /run/cups/cups.sock"); | 454 | profile_add("blacklist /run/cups/cups.sock"); |
455 | return 0; | 455 | return 0; |