summaryrefslogtreecommitdiff
path: root/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp')
-rw-r--r--print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp b/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp
new file mode 100644
index 000000000000..217e6bc7105c
--- /dev/null
+++ b/print/hplip/files/patch-prnt_hpijs_hpcupsfax.cpp
@@ -0,0 +1,20 @@
+--- prnt/hpijs/hpcupsfax.cpp.orig 2022-02-23 07:41:05 UTC
++++ prnt/hpijs/hpcupsfax.cpp
+@@ -94,7 +94,7 @@ static void GetLogLevel ()
+ FILE *fp;
+ char str[258];
+ char *p;
+- fp = fopen ("/etc/cups/cupsd.conf", "r");
++ fp = fopen ("/usr/local/etc/cups/cupsd.conf", "r");
+ if (fp == NULL)
+ return;
+ while (!feof (fp))
+@@ -687,7 +687,7 @@ int main (int argc, char **argv)
+ return 1;
+ }
+ else
+- chmod(hpFileName, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP );
++ chmod(hpFileName, S_IRUSR | S_IWUSR | S_IRGRP | 0 );
+
+ /*********** MAIN ***********/
+