From 404e813c5233db8d6cc0cc74b7b49922c0953773 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 18 Feb 2002 22:25:55 +0000 Subject: [PATCH] Add -vvv trace statement to set_modtime to help with Debian bug #100295. --- util.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; -- 2.34.1