svn commit: r285453 - stable/10/sbin/newfs_nandfs

Christian Brueffer brueffer at FreeBSD.org
Mon Jul 13 13:02:05 UTC 2015


Author: brueffer
Date: Mon Jul 13 13:02:04 2015
New Revision: 285453
URL: https://svnweb.freebsd.org/changeset/base/285453

Log:
  MFC: r285029
  
  Fix an obviously wrong boolean operator.
  
  PR:		200983
  Submitted by:	David Bindeman
  Approved by:	re (gjb)

Modified:
  stable/10/sbin/newfs_nandfs/newfs_nandfs.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sbin/newfs_nandfs/newfs_nandfs.c
==============================================================================
--- stable/10/sbin/newfs_nandfs/newfs_nandfs.c	Mon Jul 13 12:31:01 2015	(r285452)
+++ stable/10/sbin/newfs_nandfs/newfs_nandfs.c	Mon Jul 13 13:02:04 2015	(r285453)
@@ -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.");
 


More information about the svn-src-stable-10 mailing list