]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(EXPECTED_ERRNO): Add ENOSYS, for Solaris 8.
authorJim Meyering <jim@meyering.net>
Sun, 4 Dec 2005 22:00:14 +0000 (22:00 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 4 Dec 2005 22:00:14 +0000 (22:00 +0000)
Paul Eggert reported that unlink/rmdir vs. e.g., /proc/self/fd/N/FILE
fails with ENOSYS.  This makes openat revert to using save-cwd.c
functions in that case.

lib/openat-priv.h

index ca4c8a2a10b45eef0fce15df2bbec323109ba447..2b4780eecf113ebb0e298ea3eee4d42c61949439 100644 (file)
@@ -45,7 +45,8 @@
    /proc support, and even on systems *with* ProcFS support.  Return
    nonzero if the failure may be legitimate, e.g., because /proc is not
    readable, or the particular .../fd/N directory is not present.  */
-#define EXPECTED_ERRNO(Errno) \
-  ((Errno) == ENOTDIR || (Errno) == ENOENT \
-   || (Errno) == EPERM || (Errno) == EACCES \
+#define EXPECTED_ERRNO(Errno)                  \
+  ((Errno) == ENOTDIR || (Errno) == ENOENT     \
+   || (Errno) == EPERM || (Errno) == EACCES    \
+   || (Errno) == ENOSYS /* Solaris 8 */                \
    || (Errno) == EOPNOTSUPP /* FreeBSD */)