Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Jul 2015 12:14:49 +0000 (UTC)
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r285029 - head/sbin/newfs_nandfs
Message-ID:  <201507021214.t62CEn8K011169@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brueffer
Date: Thu Jul  2 12:14:48 2015
New Revision: 285029
URL: https://svnweb.freebsd.org/changeset/base/285029

Log:
  Fix an obviously wrong boolean operator.
  
  PR:		200983
  Submitted by:	David Bindeman
  MFC after:	1 week

Modified:
  head/sbin/newfs_nandfs/newfs_nandfs.c

Modified: head/sbin/newfs_nandfs/newfs_nandfs.c
==============================================================================
--- head/sbin/newfs_nandfs/newfs_nandfs.c	Thu Jul  2 12:08:05 2015	(r285028)
+++ head/sbin/newfs_nandfs/newfs_nandfs.c	Thu Jul  2 12:14:48 2015	(r285029)
@@ -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.");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507021214.t62CEn8K011169>