summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2012-06-23 02:50:21 (GMT)
committerLarry Hastings <larry@hastings.org>2012-06-23 02:50:21 (GMT)
commitdbbc0c8bb39a8b92692f03491c9384d9c068b9e2 (patch)
tree49556985a014aab3a90903b97bc7ab1c18b3b822 /Modules/posixmodule.c
parentfafd9eeef04ae4ac388bf2fbd0695c2f08eee68e (diff)
downloadcpython-dbbc0c8bb39a8b92692f03491c9384d9c068b9e2.zip
cpython-dbbc0c8bb39a8b92692f03491c9384d9c068b9e2.tar.gz
cpython-dbbc0c8bb39a8b92692f03491c9384d9c068b9e2.tar.bz2
Issue #14626: Fix buildbot issue on OpenIndiana 3.x machines. (Hopefully.)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index eb59513..1f1711d 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -2696,7 +2696,8 @@ posix_chmod(PyObject *self, PyObject *args, PyObject *kwargs)
/*
* fchmodat() doesn't currently support AT_SYMLINK_NOFOLLOW!
* The documentation specifically shows how to use it,
- * and then says it isn't implemented yet. (glibc 2.15)
+ * and then says it isn't implemented yet.
+ * (true on linux with glibc 2.15, and openindiana 3.x)
*
* Once it is supported, os.chmod will automatically
* support dir_fd and follow_symlinks=False. (Hopefully.)
@@ -2709,7 +2710,9 @@ posix_chmod(PyObject *self, PyObject *args, PyObject *kwargs)
* and we can't do that in this nested scope. (Macro trickery, sigh.)
*/
fchmodat_nofollow_unsupported =
- result && (errno == ENOTSUP) && !follow_symlinks;
+ result &&
+ ((errno == ENOTSUP) || (errno == EOPNOTSUPP)) &&
+ !follow_symlinks;
}
else
#endif