From 928d7c31618b48d77090f13e09595170b43ca95d Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 15 Feb 1996 21:31:11 +0000 Subject: Formerly dir-lookup.c.~6~ --- libnetfs/dir-lookup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libnetfs') diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c index 5915a7a7..7e337761 100644 --- a/libnetfs/dir-lookup.c +++ b/libnetfs/dir-lookup.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1996 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -116,7 +116,7 @@ netfs_S_dir_lookup (struct protid *diruser, retry_lookup: if (dnp == netfs_root_node - && nextname[0] == '.' && nextname[1] == '.' && nextname[2] == '\0') + && filename[0] == '.' && filename[1] == '.' && filename[2] == '\0') { /* Lookup of .. from root */ if (diruser->po->dotdotport != MACH_PORT_NULL) @@ -140,7 +140,7 @@ netfs_S_dir_lookup (struct protid *diruser, } else /* Attempt a lookup on the next pathname component. */ - error = netfs_attempt_lookup (diruser->credential, dnp, nextname, &np); + error = netfs_attempt_lookup (diruser->credential, dnp, filename, &np); /* At this point, DNP is unlocked */ -- cgit v1.2.3