git://git.openafs.org
/
openafs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
afs_vnop_attrs: syntax error in conditional expression
[openafs.git]
/
src
/
afs
/
VNOPS
/
afs_vnop_attrs.c
diff --git
a/src/afs/VNOPS/afs_vnop_attrs.c
b/src/afs/VNOPS/afs_vnop_attrs.c
index
330d84d
..
1c80de4
100644
(file)
--- a/
src/afs/VNOPS/afs_vnop_attrs.c
+++ b/
src/afs/VNOPS/afs_vnop_attrs.c
@@
-221,7
+221,7
@@
afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, afs_ucred_t *acred)
#endif
{
if (!(code = afs_InitReq(&treq, acred))) {
- if (vType(avc) != VDIR && vType(avc) != VLNK
+ if (vType(avc) != VDIR && vType(avc) != VLNK &&
!afs_AccessOK(avc, PRSFS_READ, &treq, DONT_CHECK_MODE_BITS)) {
code = EACCES;