]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
lookup is sufficient for this, fix the client not to bogusly
authorDerrick Brashear <shadow@dementia.org>
Sun, 21 Apr 2002 22:08:47 +0000 (22:08 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Sun, 21 Apr 2002 22:08:47 +0000 (22:08 +0000)
enforce extra restrictions

(cherry picked from commit 8011b683bc72968afcf69d6c7220716281bcba55)

src/afs/VNOPS/afs_vnop_lookup.c

index 88bd4c106b40d0ee43e6e67a37257d4cffde0c97..1b6e0cc9bcb3c24107accb40635354a2f6b17906 100644 (file)
@@ -999,7 +999,7 @@ afs_lookup(adp, aname, avcp, acred)
 
     /* Check for read access as well.  We need read access in order to
        stat files, but not to stat subdirectories. */
-    if (!afs_AccessOK(adp, PRSFS_READ, &treq, CHECK_MODE_BITS))
+    if (!afs_AccessOK(adp, PRSFS_LOOKUP, &treq, CHECK_MODE_BITS))
        no_read_access = 1;
 
     /* special case lookup of ".".  Can we check for it sooner in this code,