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 write more than PIPE_BUF bytes in any one write() in io.c
[rsync/rsync.git]
/
rsync.c
diff --git
a/rsync.c
b/rsync.c
index
5a02979
..
680fc0b
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-200,14
+200,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)) {
- int file_mode;
- if (preserve_perms)
- file_mode = file->mode;
- else
- file_mode = file->mode & ACCESSPERMS;
if (st->st_mode != file->mode) {
updated = 1;
if (st->st_mode != file->mode) {
updated = 1;
- if (do_chmod(fname,file
_
mode) != 0) {
+ if (do_chmod(fname,file
->
mode) != 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;