From f3bcfda51f5aa1185c3fab6b1c56d5c5165426f1 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Fri, 8 Mar 2002 04:57:56 +0000 Subject: [PATCH] linux24-fix-memcache-20020307 The problem is that on 2.4 the 'code' variable is over-written during the path walk, such that by the time it's checking if the inode exists, code is already '0'. But if the inode does not exist, code should be ENOENT to show that the file does not exist. --- src/afs/LINUX/osi_misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/afs/LINUX/osi_misc.c b/src/afs/LINUX/osi_misc.c index 0e6df7bda..089fdf875 100644 --- a/src/afs/LINUX/osi_misc.c +++ b/src/afs/LINUX/osi_misc.c @@ -51,7 +51,8 @@ int osi_lookupname(char *aname, uio_seg_t seg, int followlink, if (nd.dentry->d_inode) { *dpp = dget(nd.dentry); code = 0; - } + } else + code = ENOENT; path_release(&nd); } #else -- 2.39.5