Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8889763
)
Ignore a time-setting error on a symlink (which is only attempted
author
Wayne Davison
<wayned@samba.org>
Sun, 12 Nov 2006 21:18:26 +0000
(21:18 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 12 Nov 2006 21:18:26 +0000
(21:18 +0000)
on a system with lutimes() anyway).
util.c
patch
|
blob
|
blame
|
history
diff --git
a/util.c
b/util.c
index
540fdf5
..
fc77219
100644
(file)
--- 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