From: Jim Meyering Date: Mon, 3 Jan 2005 19:23:09 +0000 (+0000) Subject: (futimens): Account for the fact that futimes X-Git-Tag: v5.3.0~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e0a94d174bb6b9a432b620893c9b7776e5751571;p=thirdparty%2Fcoreutils.git (futimens): Account for the fact that futimes can also fail with errno == ENOSYS in that case. Patch from Dmitry V. Levin. --- diff --git a/lib/utimens.c b/lib/utimens.c index 4a9c9c6c4b..c394977173 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