From a035c1dc3e8f671ee17ee5c12870c6fed78a93b8 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 14 Jul 1998 20:50:32 +0000 Subject: Tue Jul 14 16:27:00 1998 Thomas Bushnell, n/BSG * dir-lookup.c (diskfs_S_dir_lookup): Don't require the node to be a directory in the null pathname case. (Thus reverting one of the changes of June 15, 1994.) --- libdiskfs/ChangeLog | 6 ++++++ libdiskfs/dir-lookup.c | 4 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libdiskfs/ChangeLog b/libdiskfs/ChangeLog index b1018988..1d6e0143 100644 --- a/libdiskfs/ChangeLog +++ b/libdiskfs/ChangeLog @@ -1,3 +1,9 @@ +Tue Jul 14 16:27:00 1998 Thomas Bushnell, n/BSG + + * dir-lookup.c (diskfs_S_dir_lookup): Don't require the node to be + a directory in the null pathname case. (Thus reverting one of the + changes of June 15, 1994.) + Mon Jun 29 18:54:23 1998 Thomas Bushnell, n/BSG * lookup.c (diskfs_lookup): If NAME is empty, return an error. diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c index 9946300c..a75ac05d 100644 --- a/libdiskfs/dir-lookup.c +++ b/libdiskfs/dir-lookup.c @@ -1,5 +1,5 @@ /* libdiskfs implementation of fs.defs:dir_lookup - Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997 Free Software Foundation + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -76,8 +76,6 @@ diskfs_S_dir_lookup (struct protid *dircred, if (path[0] == '\0') { - mustbedir = 1; - /* Set things up in the state expected by the code from gotit: on. */ dnp = 0; np = dircred->po->np; -- cgit v1.2.3