]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
afs-dont-mask-rights-granted-by-lookup-20020328
authorDerrick Brashear <shadow@dementia.org>
Thu, 28 Mar 2002 22:00:55 +0000 (22:00 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 28 Mar 2002 22:00:55 +0000 (22:00 +0000)
lookup is sufficient for this, fix the client not to bogusly
enforce extra restrictions

src/afs/VNOPS/afs_vnop_lookup.c

index f356883fc05c2c656b03819db56d330d1f86976e..726a95dbafe9639a0981755fb71219d08a83a265 100644 (file)
@@ -1010,7 +1010,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,