aboutsummaryrefslogtreecommitdiffstats
path: root/main/python2/unchecked-ioctl.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <b@bpiotrowski.pl>2016-07-18 19:33:46 +0200
committerBartłomiej Piotrowski <b@bpiotrowski.pl>2016-07-18 19:33:46 +0200
commit99dd043cd563c7919bb11bd2478a9e0f9a3dd1c0 (patch)
tree614346077236a57a7c83dab8dfb59d2bdc11474d /main/python2/unchecked-ioctl.patch
parent2c8afec95a601ac9e6ce0d39e761038970f8c0ec (diff)
downloadaports-99dd043cd563c7919bb11bd2478a9e0f9a3dd1c0.tar.bz2
aports-99dd043cd563c7919bb11bd2478a9e0f9a3dd1c0.tar.xz
main/python: rename to python2
Diffstat (limited to 'main/python2/unchecked-ioctl.patch')
-rw-r--r--main/python2/unchecked-ioctl.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/python2/unchecked-ioctl.patch b/main/python2/unchecked-ioctl.patch
new file mode 100644
index 0000000000..4d5564c2cb
--- /dev/null
+++ b/main/python2/unchecked-ioctl.patch
@@ -0,0 +1,11 @@
+--- ./Modules/fcntlmodule.c.orig
++++ ./Modules/fcntlmodule.c
+@@ -118,7 +118,7 @@
+ int mutate_arg = 1;
+ char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */
+
+- if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl",
++ if (PyArg_ParseTuple(args, "O&Iw#|n:ioctl",
+ conv_descriptor, &fd, &code,
+ &str, &len, &mutate_arg)) {
+ char *arg;