summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2015-07-02 12:14:48 +0000
committerbrueffer <brueffer@FreeBSD.org>2015-07-02 12:14:48 +0000
commit7e192669642568039dca5714f48f7388ec82e8ae (patch)
treedb53e6d9c73f5b2d37ce65821c0d87f4a2365da8 /sbin
parent5d3547e496d32f7bcf57aefe852689f802123fa1 (diff)
downloadFreeBSD-src-7e192669642568039dca5714f48f7388ec82e8ae.zip
FreeBSD-src-7e192669642568039dca5714f48f7388ec82e8ae.tar.gz
Fix an obviously wrong boolean operator.
PR: 200983 Submitted by: David Bindeman MFC after: 1 week
Diffstat (limited to 'sbin')
-rw-r--r--sbin/newfs_nandfs/newfs_nandfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/newfs_nandfs/newfs_nandfs.c b/sbin/newfs_nandfs/newfs_nandfs.c
index fda2b9ed..3990dbb 100644
--- a/sbin/newfs_nandfs/newfs_nandfs.c
+++ b/sbin/newfs_nandfs/newfs_nandfs.c
@@ -897,7 +897,7 @@ check_parameters(void)
NANDFS_SEG_MIN_BLOCKS);
/* check reserved segment percentage */
- if ((rsv_segment_percent < 1) && (rsv_segment_percent > 99))
+ if ((rsv_segment_percent < 1) || (rsv_segment_percent > 99))
errx(1, "Bad reserved segment percentage. "
"Must in range 1..99.");
OpenPOWER on IntegriCloud