summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/patches/fix-cgi-scripts.patch24
-rw-r--r--debian/patches/series1
2 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/fix-cgi-scripts.patch b/debian/patches/fix-cgi-scripts.patch
new file mode 100644
index 00000000..8a914e1c
--- /dev/null
+++ b/debian/patches/fix-cgi-scripts.patch
@@ -0,0 +1,24 @@
+commit 3d1f41307e66ceb5ab9e8f903aeda66359615483
+Author: msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
+Date: Fri Jul 18 20:37:49 2014 +0000
+
+ Fix CGI scripts (STR #4454)
+
+ git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.7@12052 a1ca3aef-8c08-0410-bb20-df032aa958be
+
+--- a/scheduler/client.c
++++ b/scheduler/client.c
+@@ -3812,12 +3812,7 @@
+ argv[0] = command;
+
+ if (options)
+- {
+- commptr = options;
+- if (*commptr == ' ')
+- commptr ++;
+- strlcpy(argbuf, commptr, sizeof(argbuf));
+- }
++ strlcpy(argbuf, options, sizeof(argbuf));
+ else
+ argbuf[0] = '\0';
+
diff --git a/debian/patches/series b/debian/patches/series
index 550e38e1..8d23beb5 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
# patches accepted and committed upstream
+fix-cgi-scripts.patch
# patches sent upstream
pwg-raster-attributes.patch