]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(futimens): Account for the fact that futimes
authorJim Meyering <jim@meyering.net>
Mon, 3 Jan 2005 19:23:09 +0000 (19:23 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 3 Jan 2005 19:23:09 +0000 (19:23 +0000)
can also fail with errno == ENOSYS in that case.
Patch from Dmitry V. Levin.

lib/utimens.c

index 4a9c9c6c4be7282ef1ac8880308b5aaef24ecb16..c3949771731eff7e503c1b8ef599d230b31c3ad4 100644 (file)
@@ -81,9 +81,9 @@ futimens (int fd ATTRIBUTE_UNUSED,
        return 0;
 
       /* On GNU/Linux without the futimes syscall and without /proc
-        mounted, glibc futimes fails with errno == ENOENT.  Fall back
-        on utimes in this case.  */
-      if (errno != ENOENT)
+        mounted, glibc futimes fails with errno == ENOENT or ENOSYS.
+        Fall back on utimes in this case.  */
+      if (errno != ENOENT && errno != ENOSYS)
        return -1;
     }
 # endif