~vcs-imports/rsync/main

« back to all changes in this revision

Viewing changes to util.c

  • Committer: wayned
  • Date: 2006-11-12 21:18:26 UTC
  • Revision ID: vcs-imports@canonical.com-20061112211826-2300c95050ce6cef
Ignore a time-setting error on a symlink (which is only attempted
on a system with lutimes() anyway).

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
                t[1].tv_sec = modtime;
146
146
                t[1].tv_usec = 0;
147
147
# ifdef HAVE_LUTIMES
148
 
                if (S_ISLNK(mode))
149
 
                        return lutimes(fname, t);
 
148
                if (S_ISLNK(mode)) {
 
149
                        lutimes(fname, t);
 
150
                        return 0; /* ignore errors */
 
151
                }
150
152
# endif
151
153
                return utimes(fname, t);
152
154
#elif defined HAVE_UTIMBUF