1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/lang/python32/files/patch-Modules__selectmodule.c
Kubilay Kocak 7472d2087e lang/python32: Backport upstream kevent fix
Backport a change fixing use of kevent flags that was merged to Python
default, 3.3 and 2.7 branches, but not 3.2 and 3.1 that were in
security-only mode at the time of commit. [1]

- Add patch: patch-Modules__selectmodule.c

References:

[1] Issue #11973: Fix a problem in kevent. The flags and fflags fields
    are now properly handled as unsigned. [#11973]

    http://bugs.python.org/issue11973
    http://hg.python.org/cpython/rev/8345fb616cbd

While I'm here:

- Add LICENSE (PSFL)
- Clean up, reorganise, sort & whitespace align sections

PR:		ports/156759
Submitted by:	David Naylor <naylor.b.david@gmail.com>
Reviewed by:	mva
2013-12-01 09:36:49 +00:00

12 lines
532 B
C

--- ./Modules/selectmodule.c.orig 2013-11-30 23:03:20.030929248 +1100
+++ ./Modules/selectmodule.c 2013-11-30 23:03:56.111022639 +1100
@@ -1246,7 +1246,7 @@
PyObject *pfd;
static char *kwlist[] = {"ident", "filter", "flags", "fflags",
"data", "udata", NULL};
- static char *fmt = "O|hhi" INTPTRT_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent";
+ static char *fmt = "O|hHI" INTPTRT_FMT_UNIT UINTPTRT_FMT_UNIT ":kevent";
EV_SET(&(self->e), 0, EVFILT_READ, EV_ADD, 0, 0, 0); /* defaults */