]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
The problem is that on 2.4 the 'code' variable is over-written during
authorDerek Atkins <warlord@mit.edu>
Sun, 21 Apr 2002 06:13:01 +0000 (06:13 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Sun, 21 Apr 2002 06:13:01 +0000 (06:13 +0000)
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.

(cherry picked from commit f3bcfda51f5aa1185c3fab6b1c56d5c5165426f1)

src/afs/LINUX/osi_misc.c

index 1609f37e74a3d7822308965f3b58b642e6b3d2fd..245c74cb930e7ebb134fce3063c336cddac63425 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