summaryrefslogtreecommitdiff
path: root/user/gutenprint/freopen.patch
diff options
context:
space:
mode:
Diffstat (limited to 'user/gutenprint/freopen.patch')
-rw-r--r--user/gutenprint/freopen.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/gutenprint/freopen.patch b/user/gutenprint/freopen.patch
new file mode 100644
index 000000000..ddc351fec
--- /dev/null
+++ b/user/gutenprint/freopen.patch
@@ -0,0 +1,11 @@
+--- gutenprint-5.3.1/src/xml/printers/check_duplicate_printers.c.old 2018-09-03 15:19:33.000000000 +0000
++++ gutenprint-5.3.1/src/xml/printers/check_duplicate_printers.c 2019-05-01 20:32:48.290238929 +0000
+@@ -34,7 +34,7 @@
+ if (getenv("BUILD_VERBOSE"))
+ dup2(2, 3);
+ (void) snprintf(path, PATH_MAX, "%scheck_duplicate_printers_%d.log", getenv("STP_TEST_LOG_PREFIX"), getpid());
+- stdout = freopen(path, "w", stdout);
++ freopen(path, "w", stdout);
+ dup2(1, 2);
+ }
+ setenv("STP_CHECK_DUPLICATE_PRINTERS", "TRUE", 1);