Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- check for sys/select.h
[rsync/rsync.git]
/
rsync.c
diff --git
a/rsync.c
b/rsync.c
index
bcb101a
..
b19681c
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-234,9
+234,9
@@
static int set_perms(char *fname,struct file_struct *file,struct stat *st,
if ((am_root && preserve_uid && st->st_uid != file->uid) ||
(preserve_gid && st->st_gid != file->gid)) {
updated = 1;
if ((am_root && preserve_uid && st->st_uid != file->uid) ||
(preserve_gid && st->st_gid != file->gid)) {
updated = 1;
- if (chown(fname,
- (am_root&&preserve_uid)?file->uid:-1,
- preserve_gid?file->gid:-1) != 0) {
+ if (
l
chown(fname,
+
(am_root&&preserve_uid)?file->uid:-1,
+
preserve_gid?file->gid:-1) != 0) {
if (verbose>1 || preserve_uid)
fprintf(FERROR,"chown %s : %s\n",fname,strerror(errno));
return updated;
if (verbose>1 || preserve_uid)
fprintf(FERROR,"chown %s : %s\n",fname,strerror(errno));
return updated;