From: Derrick Brashear Date: Thu, 28 Mar 2002 22:00:55 +0000 (+0000) Subject: afs-dont-mask-rights-granted-by-lookup-20020328 X-Git-Tag: openafs-devel_1_3_3~167 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8011b683bc72968afcf69d6c7220716281bcba55;p=packages%2Fo%2Fopenafs.git afs-dont-mask-rights-granted-by-lookup-20020328 lookup is sufficient for this, fix the client not to bogusly enforce extra restrictions --- diff --git a/src/afs/VNOPS/afs_vnop_lookup.c b/src/afs/VNOPS/afs_vnop_lookup.c index f356883fc..726a95dba 100644 --- a/src/afs/VNOPS/afs_vnop_lookup.c +++ b/src/afs/VNOPS/afs_vnop_lookup.c @@ -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,