From 77d4c400c200e11aa1ab814101678c02c2d90414 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 16 Dec 2007 17:18:01 -0800 Subject: [PATCH] Only ignore ENOSYS error from lutimes(). --- util.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/util.c b/util.c index 2544b45e..05748b1b 100644 --- a/util.c +++ b/util.c @@ -147,8 +147,9 @@ int set_modtime(const char *fname, time_t modtime, mode_t mode) t[1].tv_usec = 0; # ifdef HAVE_LUTIMES if (S_ISLNK(mode)) { - lutimes(fname, t); - return 0; /* ignore errors */ + if (lutimes(fname, t) < 0 && errno != ENOSYS) + return -1; + return 0; } # endif return utimes(fname, t); -- 2.34.1