The Samba-Bugzilla – Attachment 666 Details for
Bug 1764
dry-run does not show changes in owner / group, permission, or timestamp
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for rsync.c
rsync.c.diff.txt (text/plain), 1.38 KB, created by
Michael Wang
on 2004-09-16 21:09:17 UTC
(
hide
)
Description:
patch for rsync.c
Filename:
MIME Type:
Creator:
Michael Wang
Created:
2004-09-16 21:09:17 UTC
Size:
1.38 KB
patch
obsolete
>--- rsync-2.6.2/rsync.c Tue Mar 23 11:16:15 2004 >+++ rsync-2.6.2-new/rsync.c Wed Sep 15 01:35:16 2004 >@@ -129,7 +129,6 @@ > STRUCT_STAT st2; > int change_uid, change_gid; > >- if (dry_run) return 0; > > if (!st) { > if (link_stat(fname,&st2) != 0) { >@@ -142,6 +141,10 @@ > > if (preserve_times && !S_ISLNK(st->st_mode) && > cmp_modtime(st->st_mtime, file->modtime) != 0) { >+ if (dry_run) { >+ rprintf(FINFO,"modtime: %s\n",fname); >+ return 0; >+ } > /* don't complain about not setting times on directories > * because some filesystems can't do it */ > if (set_modtime(fname,file->modtime) != 0 && >@@ -157,6 +160,10 @@ > change_gid = preserve_gid && file->gid != GID_NONE > && st->st_gid != file->gid; > if (change_uid || change_gid) { >+ if (dry_run) { >+ rprintf(FINFO,"chown: %s\n",fname); >+ return 0; >+ } > if (verbose > 2) { > if (change_uid) { > rprintf(FINFO, >@@ -191,6 +198,10 @@ > #ifdef HAVE_CHMOD > if (!S_ISLNK(st->st_mode)) { > if ((st->st_mode & CHMOD_BITS) != (file->mode & CHMOD_BITS)) { >+ if (dry_run) { >+ rprintf(FINFO,"chmod: %s\n",fname); >+ return 0; >+ } > updated = 1; > if (do_chmod(fname,(file->mode & CHMOD_BITS)) != 0) { > rprintf(FERROR, "failed to set permissions on %s: %s\n", >@@ -201,7 +212,7 @@ > } > #endif > >- if (verbose > 1 && report) { >+ if (verbose >= 1 && report) { > if (updated) > rprintf(FINFO,"%s\n",fname); > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1764
: 666