diff options
author | 2016-10-07 07:51:16 +0000 | |
---|---|---|
committer | 2016-10-07 07:51:16 +0000 | |
commit | bf714076a557ba70dd6bc9014e28474ccb6cb736 (patch) | |
tree | 67cdcf73a1af38dcd3babb59f039285d4bddaab2 | |
parent | The strchr() call either returns a NULL pointer, on which the code will (diff) | |
download | wireguard-openbsd-bf714076a557ba70dd6bc9014e28474ccb6cb736.tar.xz wireguard-openbsd-bf714076a557ba70dd6bc9014e28474ccb6cb736.zip |
Extra parentheses in conditional; no binary change.
from brynet, ok deraadt
-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); |