Honor the new omit_dir_times var.
[rsync/rsync.git] / util.c
diff --git a/util.c b/util.c
index 4f1b59a..1e1c9db 100644 (file)
--- 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;