Commit a5bb0902 authored by Wayne Davison's avatar Wayne Davison

One more fix in set_modtime() when we get ENOSYS on a symlink.

parent d348d5fd
......@@ -147,8 +147,8 @@ int set_modtime(const char *fname, time_t modtime, mode_t mode)
t[1].tv_usec = 0;
# ifdef HAVE_LUTIMES
if (S_ISLNK(mode)) {
if (lutimes(fname, t) < 0 && errno != ENOSYS)
return -1;
if (lutimes(fname, t) < 0)
return errno == ENOSYS ? 1 : -1;
return 0;
}
# endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment