X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/0379c8eca1716810c06a0c8710c06d77a6256be6..45a143cd510865bcd6e08333df58898893c8f28d:/generator.c diff --git a/generator.c b/generator.c index db0824df..5ba5579d 100644 --- a/generator.c +++ b/generator.c @@ -517,6 +517,14 @@ static void do_delete_pass(void) int unchanged_attrs(const char *fname, struct file_struct *file, stat_x *sxp) { +#if !defined HAVE_LCHMOD && !defined HAVE_SETATTRLIST + if (S_ISLNK(file->mode)) { + ; + } else +#endif + if (preserve_times && cmp_time(sxp->st.st_mtime, file->modtime) != 0) + return 0; + if (preserve_perms && !BITS_EQUAL(sxp->st.st_mode, file->mode, CHMOD_BITS)) return 0;