1
From: Wayne Davison <wayned@samba.org>
2
Date: Sun, 12 Nov 2006 21:18:26 +0000 (+0000)
3
Subject: Ignore a time-setting error on a symlink (which is only attempted
4
X-Git-Tag: v3.0.0pre1~576
5
X-Git-Url: http://git.samba.org/?p=rsync.git;a=commitdiff_plain;h=149a78e33f1632c8a3bdd00e10aecf69c8d5608d;hp=88897638a98d39721a059e44ebcbcdcdcaf80df1
7
Ignore a time-setting error on a symlink (which is only attempted
8
on a system with lutimes() anyway).
11
diff --git a/util.c b/util.c
12
index 540fdf5..fc77219 100644
15
@@ -145,8 +145,10 @@ int set_modtime(char *fname, time_t modtime, mode_t mode)
16
t[1].tv_sec = modtime;
20
- return lutimes(fname, t);
21
+ if (S_ISLNK(mode)) {
23
+ return 0; /* ignore errors */
26
return utimes(fname, t);
27
#elif defined HAVE_UTIMBUF