--- 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