X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/3f0211b63a6cdc4a2cecfd2a0dffeba172c86a47..77d4c400c200e11aa1ab814101678c02c2d90414:/util.c diff --git a/util.c b/util.c index 74341930..05748b1b 100644 --- a/util.c +++ b/util.c @@ -147,8 +147,9 @@ int set_modtime(const char *fname, time_t modtime, mode_t mode) t[1].tv_usec = 0; # ifdef HAVE_LUTIMES if (S_ISLNK(mode)) { - lutimes(fname, t); - return 0; /* ignore errors */ + if (lutimes(fname, t) < 0 && errno != ENOSYS) + return -1; + return 0; } # endif return utimes(fname, t); @@ -898,6 +899,9 @@ int push_dir(const char *dir, int set_path_only) curr_dir_depth = count_dir_elements(curr_dir + module_dirlen); } + if (verbose >= 5) + rprintf(FINFO, "[%s] dir is now %s\n", who_am_i(), curr_dir); + return 1; }