git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
6c0ca56
)
avoid-leaking-stat-info-20050424
author
Chas Williams
<chas@cmf.nrl.navy.mil>
Sun, 24 Apr 2005 15:01:29 +0000 (15:01 +0000)
committer
Derrick Brashear
<shadow@dementia.org>
Sun, 24 Apr 2005 15:01:29 +0000 (15:01 +0000)
otherwise we are effectively giving stat powers to people who shouldn't have it
src/afs/VNOPS/afs_vnop_lookup.c
patch
|
blob
|
history
diff --git
a/src/afs/VNOPS/afs_vnop_lookup.c
b/src/afs/VNOPS/afs_vnop_lookup.c
index
229bba4
..
c82496a
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_lookup.c
+++ b/
src/afs/VNOPS/afs_vnop_lookup.c
@@
-1198,7
+1198,7
@@
afs_lookup(OSI_VC_DECL(adp), char *aname, struct vcache **avcp, struct AFS_UCRED
/* 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_LOOKUP, &treq, CHECK_MODE_BITS))
+ if (!afs_AccessOK(adp, PRSFS_READ, &treq, CHECK_MODE_BITS))
no_read_access = 1;
/* special case lookup of ".". Can we check for it sooner in this code,