small fix

This commit is contained in:
netblue30 2021-10-20 20:07:17 -04:00
parent bd15e763ea
commit d9403dcdc8
2 changed files with 2 additions and 2 deletions

View file

@ -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");
}

View file

@ -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;