summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-10-07 07:51:17 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-10-07 07:51:17 +0000
commit5ee88b1dca6dcaf6ef923123ac930ddbc8741f23 (patch)
tree998f047db14cc2881c5f4c60ff950c8367937c8f /sys
parent5f62d6a190eb346f84f4a442b7ba566e9ffeadb5 (diff)
Extra parentheses in conditional; no binary change.
from brynet, ok deraadt
Diffstat (limited to 'sys')
-rw-r--r--sys/ufs/ufs/ufs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index 341ffabeb09..83de484f2c2 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ufs_vnops.c,v 1.132 2016/10/06 21:00:00 natano Exp $ */
+/* $OpenBSD: ufs_vnops.c,v 1.133 2016/10/07 07:51:16 natano Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.18 1996/05/11 18:28:04 mycroft Exp $ */
/*
@@ -274,7 +274,7 @@ ufs_access(void *v)
if ((mode & VWRITE) && (DIP(ip, flags) & IMMUTABLE))
return (EPERM);
- if (vp->v_mount->mnt_flag & MNT_NOPERM &&
+ if ((vp->v_mount->mnt_flag & MNT_NOPERM) &&
(vp->v_flag & VROOT) == 0)
return (0);