diff options
author | Jim Meyering <jim@meyering.net> | 2005-01-03 19:23:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2005-01-03 19:23:09 +0000 |
commit | e0a94d174bb6b9a432b620893c9b7776e5751571 (patch) | |
tree | 868b9566304f2ae669e438da8ab824423a681931 | |
parent | 8084ea1924d16de4a3573e65fbf929cb1755bfd3 (diff) | |
download | coreutils-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.c | 6 |
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 |