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 (from parent 1:
8840ec0
)
In dest_mode(), we now apply any "incoming chmod" changes from
author
Wayne Davison
<wayned@samba.org>
Mon, 20 Feb 2006 00:01:27 +0000
(
00:01
+0000)
committer
Wayne Davison
<wayned@samba.org>
Mon, 20 Feb 2006 00:01:27 +0000
(
00:01
+0000)
the daemon.
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
b03d254
..
8ff841d
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-50,6
+50,7
@@
extern int inplace;
extern int keep_dirlinks;
extern int make_backups;
extern struct stats stats;
extern int keep_dirlinks;
extern int make_backups;
extern struct stats stats;
+extern struct chmod_mode_struct *daemon_chmod_modes;
#if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H
iconv_t ic_chck = (iconv_t)-1;
#if defined HAVE_ICONV_OPEN && defined HAVE_ICONV_H
iconv_t ic_chck = (iconv_t)-1;
@@
-116,6
+117,8
@@
mode_t dest_mode(mode_t flist_mode, mode_t cur_mode, int exists)
}
} else
cur_mode = flist_mode & ACCESSPERMS & ~orig_umask;
}
} else
cur_mode = flist_mode & ACCESSPERMS & ~orig_umask;
+ if (daemon_chmod_modes && !S_ISLNK(flist_mode))
+ cur_mode = tweak_mode(cur_mode, daemon_chmod_modes);
return (flist_mode & ~CHMOD_BITS) | (cur_mode & CHMOD_BITS);
}
return (flist_mode & ~CHMOD_BITS) | (cur_mode & CHMOD_BITS);
}