From: Wayne Davison Date: Sun, 11 Mar 2007 22:02:26 +0000 (+0000) Subject: When a hard-linked device is duplicating the data from the prior X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/057f649fc9048ba7851027001ce746ee079922d9 When a hard-linked device is duplicating the data from the prior device, we need to allocate 2 extra option slots for the device numbers. --- diff --git a/flist.c b/flist.c index ed239301..33b37b01 100644 --- a/flist.c +++ b/flist.c @@ -642,6 +642,7 @@ static struct file_struct *recv_file_entry(struct file_list *flist, || (preserve_specials && IS_SPECIAL(mode))) { uint32 *devp = F_RDEV_P(first); rdev = MAKEDEV(DEV_MAJOR(devp), DEV_MINOR(devp)); + extra_len += 2 * EXTRA_LEN; } if (preserve_links && S_ISLNK(mode)) linkname_len = strlen(F_SYMLINK(first)) + 1;