mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
afs_vnop_attrs: syntax error in conditional expression
Add a missing && in a 2-line condition. Not sure how this could have compiled successfully on the affected platforms. Change-Id: I2e8b791c6d8cd09795be1ef52c078ebfa5a3e53b Reviewed-on: http://gerrit.openafs.org/1140 Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
14ffee4bbc
commit
ddc64898e7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user