summaryrefslogtreecommitdiff
path: root/user/gutenprint/freopen.patch
blob: ddc351fec7a8e40ce36eed9955ceb8b53ca695a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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);