diff options
-rw-r--r-- | debian/patches/fixed-segfault-when-creating-logfile.patch | 15 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/fixed-segfault-when-creating-logfile.patch b/debian/patches/fixed-segfault-when-creating-logfile.patch new file mode 100644 index 0000000..29a743f --- /dev/null +++ b/debian/patches/fixed-segfault-when-creating-logfile.patch @@ -0,0 +1,15 @@ +Description: foomatic-rip: Fixed segfault when creating log file (Bug #1206). +Author: Till Kamppeter <till.kamppeter@gmail.com> +Last-Update: 2014-04-25 +--- a/foomaticrip.c ++++ b/foomaticrip.c +@@ -1197,7 +1197,8 @@ + debug = 1; + + if (debug) { +- int fd = mkstemp (LOG_FILE "-XXXXXX.log"); ++ sprintf(tmp, "%s-XXXXXX.log", LOG_FILE); ++ int fd = mkstemps (tmp, 4); + if (fd != -1) + logh = fdopen(fd, "w"); + else diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..d4a5c6d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fixed-segfault-when-creating-logfile.patch |