X-Git-Url: http://git.samba.org/?p=rsync.git;a=blobdiff_plain;f=util.c;h=fc77219fa66c23bf9bedbb5f2a64c2dc81401529;hp=540fdf5d337a955e8ae3a2fbe948c45848de86e9;hb=149a78e33f1632c8a3bdd00e10aecf69c8d5608d;hpb=88897638a98d39721a059e44ebcbcdcdcaf80df1 diff --git a/util.c b/util.c index 540fdf5d..fc77219f 100644 --- a/util.c +++ b/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