svn commit: r252210 - stable/9/sbin/growfs

Eitan Adler eadler at FreeBSD.org
Tue Jun 25 20:02:57 UTC 2013


Author: eadler
Date: Tue Jun 25 20:02:57 2013
New Revision: 252210
URL: http://svnweb.freebsd.org/changeset/base/252210

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

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

Modified: stable/9/sbin/growfs/growfs.c
==============================================================================
--- stable/9/sbin/growfs/growfs.c	Tue Jun 25 18:44:15 2013	(r252209)
+++ stable/9/sbin/growfs/growfs.c	Tue Jun 25 20:02:57 2013	(r252210)
@@ -1548,7 +1548,7 @@ main(int argc, char **argv)
 		printf(" from %s to %s? [Yes/No] ", oldsizebuf, newsizebuf);
 		fflush(stdout);
 		fgets(reply, (int)sizeof(reply), stdin);
-		if (strcmp(reply, "Yes\n")){
+		if (strcasecmp(reply, "Yes\n")){
 			printf("\nNothing done\n");
 			exit (0);
 		}


More information about the svn-src-all mailing list