From 45a07936947bef82c6d2685292a46be64a0ca661 Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 9 Nov 1996 10:25:04 +0000 Subject: Fixed lookup of ".." in checkpath. It always failed, so renames of directories to a different parent directory always failed. This bug was caused by 4.4Lite2 changing the directory format and ext2fs not keeping up. Should be in 2.2. --- sys/gnu/ext2fs/ext2_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/gnu/ext2fs/ext2_lookup.c') diff --git a/sys/gnu/ext2fs/ext2_lookup.c b/sys/gnu/ext2fs/ext2_lookup.c index af3a7bb..baeaa52 100644 --- a/sys/gnu/ext2fs/ext2_lookup.c +++ b/sys/gnu/ext2fs/ext2_lookup.c @@ -1046,7 +1046,7 @@ ext2_checkpath(source, target, cred) IO_NODELOCKED, cred, (int *)0, (struct proc *)0); if (error != 0) break; - namlen = dirbuf.dotdot_namlen; + namlen = ((struct odirtemplate *)&dirbuf)->dotdot_namlen; /* XXX */ if (namlen != 2 || dirbuf.dotdot_name[0] != '.' || dirbuf.dotdot_name[1] != '.') { -- cgit v1.1