Add -vvv trace statement to set_modtime to help with Debian bug
authorMartin Pool <mbp@samba.org>
Mon, 18 Feb 2002 22:25:55 +0000 (22:25 +0000)
committerMartin Pool <mbp@samba.org>
Mon, 18 Feb 2002 22:25:55 +0000 (22:25 +0000)
#100295.

util.c

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