afs_vnop_attrs: syntax error in conditional expression
authorMarc Dionne <marc.c.dionne@gmail.com>
Thu, 21 Jan 2010 22:53:42 +0000 (17:53 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 2 Feb 2010 04:24:13 +0000 (20:24 -0800)
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>
(cherry picked from commit ddc64898e7b3a26e6514be63ef01672fe67cb851)
Reviewed-on: http://gerrit.openafs.org/1197

src/afs/VNOPS/afs_vnop_attrs.c

index 2e96a00..f040201 100644 (file)
@@ -220,7 +220,7 @@ afs_getattr(OSI_VC_DECL(avc), struct vattr *attrs, struct AFS_UCRED *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;