From: Martin Pool Date: Mon, 18 Feb 2002 22:25:55 +0000 (+0000) Subject: Add -vvv trace statement to set_modtime to help with Debian bug X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/404e813c5233db8d6cc0cc74b7b49922c0953773 Add -vvv trace statement to set_modtime to help with Debian bug #100295. --- diff --git a/util.c b/util.c index 8ba34744..e6d127c1 100644 --- 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;