From: Wayne Davison Date: Mon, 19 Nov 2007 01:54:35 +0000 (-0800) Subject: Made some code that handles hard-linking of symlinks be X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/fd913297faad60dab4cdaa01400e9ad7d8ce7104 Made some code that handles hard-linking of symlinks be omitted if symlinks can't be hard-linked. --- diff --git a/generator.c b/generator.c index dbcd80e4..e0fb51dc 100644 --- a/generator.c +++ b/generator.c @@ -1427,7 +1427,7 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, set_file_attrs(fname, file, &sx, NULL, maybe_ATTRS_REPORT); if (itemizing) itemize(fname, file, ndx, 0, &sx, 0, 0, NULL); -#ifdef SUPPORT_HARD_LINKS +#if defined SUPPORT_HARD_LINKS && defined CAN_HARDLINK_SYMLINK if (preserve_hard_links && F_IS_HLINKED(file)) finish_hard_link(file, fname, ndx, &sx.st, itemizing, code, -1); #endif