svn commit: r252211 - stable/8/sbin/growfs

Eitan Adler eadler at FreeBSD.org
Tue Jun 25 20:03:06 UTC 2013


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);
 		}


More information about the svn-src-all mailing list