summaryrefslogtreecommitdiff
blob: 88e6c341f1f510fdf5d82a576c4a5b8604b57e5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- cups-filters-1.0.53/filter/foomatic-rip/foomaticrip.c
+++ cups-filters-1.0.53-uclibc/filter/foomatic-rip/foomaticrip.c
@@ -736,8 +736,13 @@ int main(int argc, char** argv)
         debug = 1;
 
     if (debug) {
+#ifdef __UCLIBC__
+	sprintf(tmp, "%s-log-XXXXXX", LOG_FILE);
+	int fd = mkstemp (tmp);
+#else
 	sprintf(tmp, "%s-XXXXXX.log", LOG_FILE);
 	int fd = mkstemps (tmp, 4);
+#endif
 	if (fd != -1)
 	    logh = fdopen(fd, "w");
 	else