]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
linux24-fix-memcache-20020307
authorDerek Atkins <warlord@mit.edu>
Fri, 8 Mar 2002 04:57:56 +0000 (04:57 +0000)
committerDerrick Brashear <shadow@dementia.org>
Fri, 8 Mar 2002 04:57:56 +0000 (04:57 +0000)
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

index 0e6df7bda27612246699569a6519bf32b9f22a5d..089fdf87542253e6b5aa982b8e27b05ce3d2a1c7 100644 (file)
@@ -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