Fix off by ane error in previous commit.

This caused following commands:
	mkdir z
	cd z
	touch A B
	mv B A
corrupt the '..' entry in 'z'.

Reported by:	bde
This commit is contained in:
dt 1998-05-09 09:36:38 +00:00
parent 9e9eb5452f
commit c422df4943
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $Id: msdosfs_lookup.c,v 1.21 1998/02/24 14:13:13 ache Exp $ */
/* $Id: msdosfs_lookup.c,v 1.22 1998/02/26 06:45:44 msmith Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.37 1997/11/17 15:36:54 ws Exp $ */
/*-
@ -294,7 +294,7 @@ msdosfs_lookup(ap)
* this lookup.
*/
dp->de_fndoffset = diroff;
dp->de_fndcnt = wincnt;
dp->de_fndcnt = wincnt - 1;
goto found;
}

View File

@ -1,4 +1,4 @@
/* $Id: msdosfs_lookup.c,v 1.21 1998/02/24 14:13:13 ache Exp $ */
/* $Id: msdosfs_lookup.c,v 1.22 1998/02/26 06:45:44 msmith Exp $ */
/* $NetBSD: msdosfs_lookup.c,v 1.37 1997/11/17 15:36:54 ws Exp $ */
/*-
@ -294,7 +294,7 @@ msdosfs_lookup(ap)
* this lookup.
*/
dp->de_fndoffset = diroff;
dp->de_fndcnt = wincnt;
dp->de_fndcnt = wincnt - 1;
goto found;
}