mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-04-27 01:29:05 -04:00
Ignore a time-setting error on a symlink (which is only attempted
on a system with lutimes() anyway).
This commit is contained in:
6
util.c
6
util.c
@@ -145,8 +145,10 @@ int set_modtime(char *fname, time_t modtime, mode_t mode)
|
||||
t[1].tv_sec = modtime;
|
||||
t[1].tv_usec = 0;
|
||||
# ifdef HAVE_LUTIMES
|
||||
if (S_ISLNK(mode))
|
||||
return lutimes(fname, t);
|
||||
if (S_ISLNK(mode)) {
|
||||
lutimes(fname, t);
|
||||
return 0; /* ignore errors */
|
||||
}
|
||||
# endif
|
||||
return utimes(fname, t);
|
||||
#elif defined HAVE_UTIMBUF
|
||||
|
||||
Reference in New Issue
Block a user