diff options
author | Martin Natano <natano@cvs.openbsd.org> | 2016-10-07 07:51:17 +0000 |
---|---|---|
committer | Martin Natano <natano@cvs.openbsd.org> | 2016-10-07 07:51:17 +0000 |
commit | 5ee88b1dca6dcaf6ef923123ac930ddbc8741f23 (patch) | |
tree | 998f047db14cc2881c5f4c60ff950c8367937c8f /sys/ufs | |
parent | 5f62d6a190eb346f84f4a442b7ba566e9ffeadb5 (diff) |
Extra parentheses in conditional; no binary change.
from brynet, ok deraadt
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 4 |
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); |