From f92f4e8ac3fefe2a0381e65a50869fdcdae54200 Mon Sep 17 00:00:00 2001 From: ws Date: Sat, 18 Oct 1997 22:12:27 +0000 Subject: [PATCH] Correct handling of empty files (fixes PR4285 by (and tested by) Dave Huang) --- sys/msdosfs/msdosfs_lookup.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/sys/msdosfs/msdosfs_lookup.c b/sys/msdosfs/msdosfs_lookup.c index 90270e04149f..2495777b19b4 100644 --- a/sys/msdosfs/msdosfs_lookup.c +++ b/sys/msdosfs/msdosfs_lookup.c @@ -1,4 +1,4 @@ -/* $NetBSD: msdosfs_lookup.c,v 1.33 1997/10/17 11:24:08 ws Exp $ */ +/* $NetBSD: msdosfs_lookup.c,v 1.34 1997/10/18 22:12:27 ws Exp $ */ /*- * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. @@ -442,13 +442,6 @@ found:; } } - if (cluster == MSDOSFSROOT) { - /* - * Force root to be a directory. - */ - isadir = ATTR_DIRECTORY; - blkoff = diroff; - } if (isadir) { cluster = scn; if (cluster == MSDOSFSROOT)