From faf2d8305c34fe11eb6ad0039d12802060ace9ee Mon Sep 17 00:00:00 2001 From: Christian Brueffer Date: Thu, 2 Jul 2015 12:14:48 +0000 Subject: [PATCH] Fix an obviously wrong boolean operator. PR: 200983 Submitted by: David Bindeman MFC after: 1 week --- sbin/newfs_nandfs/newfs_nandfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/newfs_nandfs/newfs_nandfs.c b/sbin/newfs_nandfs/newfs_nandfs.c index fda2b9ed01ef..3990dbbba8fd 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.");