From 9644eea648c0c11ac1929cdf23682f43e44b2732 Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 17 Jul 2024 21:41:09 +0000 Subject: tpax_update_cpio_queue_vector(): account for the last array element's c_nlink. --- src/logic/tpax_queue_vector.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/logic/tpax_queue_vector.c b/src/logic/tpax_queue_vector.c index 1b10feb..a74cf1f 100644 --- a/src/logic/tpax_queue_vector.c +++ b/src/logic/tpax_queue_vector.c @@ -162,6 +162,10 @@ static int tpax_update_cpio_queue_vector(const struct tpax_driver_ctx * dctx) cpiov++; } + if (nlink > 1) + for (idx=2; idx<=nlink; idx++) + cpiov[-idx]->nlink = nlink; + return 0; } -- cgit v1.2.3