afs_vnop_attrs: syntax error in conditional expression
[openafs.git] / src / afs / VNOPS / afs_vnop_attrs.c
index 330d84d..1c80de4 100644 (file)
@@ -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;