mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-24 22:58:16 -04:00
If we turn off FLAG_HLINKED, set FLAG_HLINK_DONE so that any
file-entry values affected by HLINK_BUMP() stay put.
This commit is contained in:
1 parent
7b46e30fd4
commit
0eeb9f5481
1 file changed
+3
@@ -151,7 +151,10 @@ static void match_gnums(int32 *ndx_list, int ndx_count)
|
||||
prev = ndx_list[from] + hlink_flist->ndx_start;
|
||||
}
|
||||
if (prev < 0 && !inc_recurse) {
|
||||
/* Indicate that this item isn't hard-linked without
|
||||
* affecting any HLINK_BUMP()-dependent values. */
|
||||
file->flags &= ~(FLAG_HLINKED | FLAG_HLINK_FIRST);
|
||||
file->flags |= FLAG_HLINK_DONE;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user