In set_modtime(), the verbose message should be output even if

--dry-run was specified.
This commit is contained in:
Wayne Davison
2005-01-20 22:58:30 +00:00
parent d06f63287e
commit 15778afbdc

6
util.c
View File

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