Subject: Bug in ext2fs support
To: None <current-users@NetBSD.ORG>
From: Manuel BOUYER <bouyer@antioche.ibp.fr>
List: current-users
Date: 11/06/1996 14:52:08
I just fixed a bug in the ext2 support I provided a few days ago.
People using it should take the new diff file from antioche.ibp.fr,
or apply the following patch to ext2fs_lookup.c
@@ -855,7 +851,7 @@
                        /* overwrite; nothing there; header is ours */
                        spacefree += dsize;
                }
-               dsize = EXT2_DIR_REC_LEN(ep->name_len);
+               dsize = EXT2_DIR_REC_LEN(nep->name_len);
                spacefree += nep->rec_len - dsize;
                loc += nep->rec_len;
                bcopy((caddr_t)nep, (caddr_t)ep, dsize);

This bug whould make the kernel panic under some conditions, when creating or
renaming a file in a non-empty directory.

--
Manuel Bouyer, MASI, Universite Paris VI.
email: bouyer@masi.ibp.fr
--