Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jun 2013 20:03:06 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r252211 - stable/8/sbin/growfs
Message-ID:  <201306252003.r5PK36MF035843@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Tue Jun 25 20:03:06 2013
New Revision: 252211
URL: http://svnweb.freebsd.org/changeset/base/252211

Log:
  MFC r250377:
  	Allow the use of lowercase 'yes'
  
  PR:		bin/178422

Modified:
  stable/8/sbin/growfs/growfs.c
Directory Properties:
  stable/8/sbin/growfs/   (props changed)

Modified: stable/8/sbin/growfs/growfs.c
==============================================================================
--- stable/8/sbin/growfs/growfs.c	Tue Jun 25 20:02:57 2013	(r252210)
+++ stable/8/sbin/growfs/growfs.c	Tue Jun 25 20:03:06 2013	(r252211)
@@ -2162,7 +2162,7 @@ main(int argc, char **argv)
 		    "before growing the Filesystem\n\n"
 		    " Did you backup your data (Yes/No) ? ");
 		fgets(reply, (int)sizeof(reply), stdin);
-		if (strcmp(reply, "Yes\n")){
+		if (strcasecmp(reply, "Yes\n")){
 			printf("\n Nothing done \n");
 			exit (0);
 		}



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