shithub: riscv

Download patch

ref: 786ec28b7b561fb1448a884ee0cd51525e9339d6
parent: e844c77845e489a1e6421b570e221e9672106bbc
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jul 5 15:51:59 EDT 2020

upas/fs: fix wrong nparts field index (changed in previous commit)

--- a/sys/src/cmd/upas/fs/idx.c
+++ b/sys/src/cmd/upas/fs/idx.c
@@ -373,7 +373,7 @@
 			if(level == 0)
 				m->deleted &= ~Dmark;
 			n = m->nparts;
-			m->nparts = strtoul(f[21], 0, 0);
+			m->nparts = strtoul(f[22], 0, 0);
 			if(rdidx(b, mb, m, m->nparts, level + 1) == -1)
 				goto dead;
 			ll = &m->next;