mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-25 07:08:18 -04:00
One more fix in set_modtime() when we get ENOSYS on a symlink.
This commit is contained in:
1 parent
d348d5fd5f
commit
a5bb0902b4
1 file changed
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user