summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2015-07-13 13:02:04 +0000
committerbrueffer <brueffer@FreeBSD.org>2015-07-13 13:02:04 +0000
commit69a48b293b41c8e2d50eaed31d95f98d0de27f57 (patch)
tree21c1ba9a1fd37dc0aca4e483dcc300225fd21fbe /sbin
parent1aa4062ff35ecb73939874687372979015379f17 (diff)
downloadFreeBSD-src-69a48b293b41c8e2d50eaed31d95f98d0de27f57.zip
FreeBSD-src-69a48b293b41c8e2d50eaed31d95f98d0de27f57.tar.gz
MFC: r285029
Fix an obviously wrong boolean operator. PR: 200983 Submitted by: David Bindeman Approved by: re (gjb)
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