In set_modtime(), the verbose message should be output even if
authorWayne Davison <wayned@samba.org>
Thu, 20 Jan 2005 22:58:30 +0000 (22:58 +0000)
committerWayne Davison <wayned@samba.org>
Thu, 20 Jan 2005 22:58:30 +0000 (22:58 +0000)
--dry-run was specified.

util.c

diff --git a/util.c b/util.c
index 99a3a5d..1e1c9db 100644 (file)
--- a/util.c
+++ b/util.c
@@ -130,15 +130,15 @@ void overflow(char *str)
 
 int set_modtime(char *fname, time_t modtime)
 {
-       if (dry_run)
-               return 0;
-
        if (verbose > 2) {
                rprintf(FINFO, "set modtime of %s to (%ld) %s",
                        fname, (long)modtime,
                        asctime(localtime(&modtime)));
        }
 
+       if (dry_run)
+               return 0;
+
        {
 #ifdef HAVE_UTIMBUF
                struct utimbuf tbuf;