1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-13 03:09:51 +03:00
aports/testing/python2/unchecked-ioctl.patch
Sören Tempel dca765490b testing/python2: move from community
There are no more packages in community/ which require Python 2. As
such, we can now move the python2 package to testing as well. This
allows us to ship the upcoming Alpine 3.16 release without Python 2
support (see https://gitlab.alpinelinux.org/alpine/tsc/-/issues/40).

As soon as we have fixed the remaining Python 2 packages in testing/ we
can remove Python 2 from Alpine entirely. See #12740 for the current
progress on these efforts. See also #11577 for the history on this.
2022-03-10 18:28:06 +01:00

11 lines
395 B
Diff

--- ./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;