git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
88467ec
)
When a hard-linked device is duplicating the data from the prior
author
Wayne Davison
<wayned@samba.org>
Sun, 11 Mar 2007 22:02:26 +0000
(22:02 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sun, 11 Mar 2007 22:02:26 +0000
(22:02 +0000)
device, we need to allocate 2 extra option slots for the device
numbers.
flist.c
patch
|
blob
|
history
diff --git
a/flist.c
b/flist.c
index ed2393016ee1c2c7d78a37e33e53d26e9de45f04..33b37b018db37e48403e2ce5bb4f0c4eb605ea80 100644
(file)
--- 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;