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:
027428e
)
Moved the dry_run check in set_perms() so that it only triggers if
author
Wayne Davison
<wayned@samba.org>
Thu, 20 Jan 2005 23:01:34 +0000
(23:01 +0000)
committer
Wayne Davison
<wayned@samba.org>
Thu, 20 Jan 2005 23:01:34 +0000
(23:01 +0000)
we don't have a stat-buffer (and returns 1, not 0).
rsync.c
patch
|
blob
|
blame
|
history
diff --git
a/rsync.c
b/rsync.c
index
6b5b500
..
e23f1ab
100644
(file)
--- a/
rsync.c
+++ b/
rsync.c
@@
-150,10
+150,9
@@
int set_perms(char *fname,struct file_struct *file,STRUCT_STAT *st,
STRUCT_STAT st2;
int change_uid, change_gid;
- if (dry_run)
- return 0;
-
if (!st) {
+ if (dry_run)
+ return 1;
if (link_stat(fname, &st2, 0) < 0) {
rsyserr(FERROR, errno, "stat %s failed",
full_fname(fname));