aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorDmitrij Tejblum <dt@FreeBSD.org>1998-05-09 09:36:38 +0000
committerDmitrij Tejblum <dt@FreeBSD.org>1998-05-09 09:36:38 +0000
commit191e6fd0b61f3ef6d56ff9caa8fe510ab6af0876 (patch)
treeb518042aafaec6855c287d6ebda56375c098e35e /sys/fs
parent97600f584f9340eece3cf9d01cccbf568028bd45 (diff)
downloadsrc-191e6fd0b61f3ef6d56ff9caa8fe510ab6af0876.tar.gz
src-191e6fd0b61f3ef6d56ff9caa8fe510ab6af0876.zip
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
Notes
Notes: svn path=/head/; revision=35871
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/msdosfs/msdosfs_lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/msdosfs/msdosfs_lookup.c b/sys/fs/msdosfs/msdosfs_lookup.c
index 54bcce184667..4ac78488bb1b 100644
--- a/sys/fs/msdosfs/msdosfs_lookup.c
+++ b/sys/fs/msdosfs/msdosfs_lookup.c
@@ -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;
}