From 0eeb9f5481181faf9fcb71752167289cd281fdba Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 4 Sep 2007 06:53:47 +0000 Subject: [PATCH] If we turn off FLAG_HLINKED, set FLAG_HLINK_DONE so that any file-entry values affected by HLINK_BUMP() stay put. --- hlink.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hlink.c b/hlink.c index f82d3b90..9d38d302 100644 --- a/hlink.c +++ b/hlink.c @@ -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; } -- 2.34.1