X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/6566d205e282822a07b652eb2bdbbb86905d1877..82471e68a8bb3da8ca95f2b6564c330c52ce891e:/util.c diff --git a/util.c b/util.c index 4f1b59ac..1e1c9db8 100644 --- 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; @@ -990,11 +990,7 @@ int handle_partial_dir(const char *fname, int create) dir = partial_fname; if (create) { STRUCT_STAT st; -#if SUPPORT_LINKS int statret = do_lstat(dir, &st); -#else - int statret = do_stat(dir, &st); -#endif if (statret == 0 && !S_ISDIR(st.st_mode)) { if (do_unlink(dir) < 0) return 0;