summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorDidier Raboud <odyx@debian.org>2014-07-19 18:04:30 +0200
committerDidier Raboud <odyx@debian.org>2014-07-19 18:04:57 +0200
commitddb2bdd19362b3031c5a0e4910f15d8d8c696249 (patch)
tree00efb8f505a4ee39b08e33a4ef3c5f82b09c5017 /debian
parentd00447c6ad233ba5c27ce576debec58598f3f7ef (diff)
downloadcups-ddb2bdd19362b3031c5a0e4910f15d8d8c696249.tar.gz
Add upstream patch to fix CGI scripts
STR: #4454
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