From: Derek Atkins Date: Fri, 8 Mar 2002 04:57:56 +0000 (+0000) Subject: linux24-fix-memcache-20020307 X-Git-Tag: openafs-devel_1_3_3~201 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f3bcfda51f5aa1185c3fab6b1c56d5c5165426f1;p=packages%2Fo%2Fopenafs.git 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. --- 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