X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/5b5125f3322ad1b178739ebf4c6f277cc391b012..9c5d930a7e30788a5b6d91a40e82470d303abdae:/packages/python/fileutils.c.patch diff --git a/packages/python/fileutils.c.patch b/packages/python/fileutils.c.patch index 0464f2a7..262a0081 100644 --- a/packages/python/fileutils.c.patch +++ b/packages/python/fileutils.c.patch @@ -1,5 +1,6 @@ ---- Python-3.5.1/Python/fileutils.c 2015-12-07 02:39:11.000000000 +0100 -+++ src/Python/fileutils.c 2016-05-17 21:46:09.006285776 +0200 +diff -u -r ../Python-3.5.1/Python/fileutils.c ./Python/fileutils.c +--- ../Python-3.5.1/Python/fileutils.c 2015-12-06 20:39:11.000000000 -0500 ++++ ./Python/fileutils.c 2016-05-18 19:46:49.466741203 -0400 @@ -856,7 +856,7 @@ return 0; } @@ -9,3 +10,14 @@ if (raise) PyErr_SetFromErrno(PyExc_OSError); return -1; +@@ -865,7 +865,9 @@ + /* Issue #22258: Here, ENOTTY means "Inappropriate ioctl for + device". The ioctl is declared but not supported by the kernel. + Remember that ioctl() doesn't work. It is the case on +- Illumos-based OS for example. */ ++ Illumos-based OS for example. ++ EACCES may be the result of an SELinux policy disabling ++ ioctl on sockets. This is the case on Android. */ + ioctl_works = 0; + } + /* fallback to fcntl() if ioctl() does not work */