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
Documented --files-from, --no-relative, --no-implied-dirs, and --from0.
[rsync/rsync.git]
/
rsync.c
diff --git
a/rsync.c
b/rsync.c
index
3e50f38
..
d6c4ac4
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-203,9
+203,9
@@
int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
#ifdef HAVE_CHMOD
if (!S_ISLNK(st->st_mode)) {
#ifdef HAVE_CHMOD
if (!S_ISLNK(st->st_mode)) {
- if (
st->st_mode != file->mode
) {
+ if (
(st->st_mode & CHMOD_BITS) != (file->mode & CHMOD_BITS)
) {
updated = 1;
updated = 1;
- if (do_chmod(fname,
file->mode
) != 0) {
+ if (do_chmod(fname,
(file->mode & CHMOD_BITS)
) != 0) {
rprintf(FERROR,"failed to set permissions on %s : %s\n",
fname,strerror(errno));
return 0;
rprintf(FERROR,"failed to set permissions on %s : %s\n",
fname,strerror(errno));
return 0;