diff options
author | Wayne Davison <wayned@samba.org> | 2006-11-12 21:18:26 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-11-12 21:18:26 +0000 |
commit | 149a78e33f1632c8a3bdd00e10aecf69c8d5608d (patch) | |
tree | f9a44ee680b6c43c2e73aeff0df15bb27d207833 /util.c | |
parent | 88897638a98d39721a059e44ebcbcdcdcaf80df1 (diff) | |
download | rsync-149a78e33f1632c8a3bdd00e10aecf69c8d5608d.tar.gz rsync-149a78e33f1632c8a3bdd00e10aecf69c8d5608d.tar.bz2 rsync-149a78e33f1632c8a3bdd00e10aecf69c8d5608d.zip |
Ignore a time-setting error on a symlink (which is only attempted
on a system with lutimes() anyway).
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |