summaryrefslogtreecommitdiff
path: root/system/libxml2/libxml2-2.9.4-remove-pyverify_fd.patch
blob: d05d4cb60f3af1503d3c308c3e131e0f483abc92 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nur libxml2-2.9.4.orig/python/types.c libxml2-2.9.4/python/types.c
--- libxml2-2.9.4.orig/python/types.c	2016-02-09 03:17:33.000000000 -0700
+++ libxml2-2.9.4/python/types.c	2016-12-21 12:34:06.755650986 -0700
@@ -31,8 +31,6 @@
     const char *mode;
 
     fd = PyObject_AsFileDescriptor(f);
-    if (!_PyVerify_fd(fd))
-        return(NULL);
     /*
      * Get the flags on the fd to understand how it was opened
      */