From e0a94d174bb6b9a432b620893c9b7776e5751571 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 3 Jan 2005 19:23:09 +0000 Subject: [PATCH] (futimens): Account for the fact that futimes can also fail with errno == ENOSYS in that case. Patch from Dmitry V. Levin. --- lib/utimens.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.47.3