Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Oct 21, 2021
1 parent bd15e76 commit d9403dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/firejail/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ int main(int argc, char **argv, char **envp) {
arg_novideo = 1;
else if (strcmp(argv[i], "--no3d") == 0)
arg_no3d = 1;
else if (strcmp(argv[i], "--noprinter") == 0) {
else if (strcmp(argv[i], "--noprinters") == 0) {
profile_add("blacklist /dev/lp*");
profile_add("blacklist /run/cups/cups.sock");
}
Expand Down
2 changes: 1 addition & 1 deletion src/firejail/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
arg_no3d = 1;
return 0;
}
else if (strcmp(ptr, "noprinter") == 0) {
else if (strcmp(ptr, "noprinters") == 0) {
profile_add("blacklist /dev/lp*");
profile_add("blacklist /run/cups/cups.sock");
return 0;
Expand Down

0 comments on commit d9403dc

Please sign in to comment.