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:
b58ad6c
)
fixed chmod bug pointed out by Han Holl <jeholl@euronet.nl>
author
Andrew Tridgell
<tridge@samba.org>
Thu, 18 Jun 1998 13:26:10 +0000
(13:26 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 18 Jun 1998 13:26:10 +0000
(13:26 +0000)
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
8e7b74c
..
3832145
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-311,7
+311,8
@@
static int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
#ifdef HAVE_CHMOD
if (preserve_perms && !S_ISLNK(st->st_mode) &&
- st->st_mode != file->mode) {
+ (st->st_mode != file->mode ||
+ (updated && (file->mode & ~ACCESSPERMS)))) {
updated = 1;
if (do_chmod(fname,file->mode) != 0) {
rprintf(FERROR,"failed to set permissions on %s : %s\n",