summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-03 19:23:09 +0000
committerJim Meyering <jim@meyering.net>2005-01-03 19:23:09 +0000
commite0a94d174bb6b9a432b620893c9b7776e5751571 (patch)
tree868b9566304f2ae669e438da8ab824423a681931
parent8084ea1924d16de4a3573e65fbf929cb1755bfd3 (diff)
downloadcoreutils-e0a94d174bb6b9a432b620893c9b7776e5751571.tar.xz
(futimens): Account for the fact that futimes
can also fail with errno == ENOSYS in that case. Patch from Dmitry V. Levin.
-rw-r--r--lib/utimens.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/utimens.c b/lib/utimens.c
index 4a9c9c6c4..c39497717 100644
--- a/lib/utimens.c
+++ b/lib/utimens.c
@@ -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