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
Don't try to use recv_xattr_request() with --dry-run. Fixes an
[rsync/rsync.git]
/
syscall.c
diff --git
a/syscall.c
b/syscall.c
index
4369c6e
..
39554e9
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-34,6
+34,7
@@
extern int am_root;
extern int read_only;
extern int list_only;
extern int preserve_perms;
extern int read_only;
extern int list_only;
extern int preserve_perms;
+extern int preserve_executability;
#define RETURN_ERROR_IF(x,e) \
do { \
#define RETURN_ERROR_IF(x,e) \
do { \
@@
-167,7
+168,7
@@
int do_chmod(const char *path, mode_t mode)
#endif
} else
code = chmod(path, mode & CHMOD_BITS);
#endif
} else
code = chmod(path, mode & CHMOD_BITS);
- if (code != 0 &&
preserve_perms
)
+ if (code != 0 &&
(preserve_perms || preserve_executability)
)
return code;
return 0;
}
return code;
return 0;
}