git: 9front

Download patch

ref: 5379518d6f65db9f062f955ca9ef04cbfd8d5aeb
parent: 69f65d783f67a8553f766d232b81e2e525142c06
author: ment <thement@ibawizard.net>
date: Sun May 8 10:34:12 EDT 2011

disk/partfs: fixed sparse partition table bug

--- a/sys/src/cmd/disk/partfs.c
+++ b/sys/src/cmd/disk/partfs.c
@@ -235,7 +235,7 @@
 	for(p = tab; p < tab + nelem(tab); p++, n++){
 		if(!p->inuse)
 			continue;
-		if(n == off){
+		if(off-- == 0){
 			d->name = estrdup9p(p->name);
 			d->length = p->length*sectsize;
 			d->mode = p->mode;
--