svn commit: r250377 - head/sbin/growfs
Eitan Adler
eadler at FreeBSD.org
Wed May 8 18:55:38 UTC 2013
Author: eadler
Date: Wed May 8 18:55:38 2013
New Revision: 250377
URL: http://svnweb.freebsd.org/changeset/base/250377
Log:
Allow the use of lowercase 'yes'
PR: bin/178422
Submitted by: Garrett Cooper <yaneurabeya at gmail.com>
Modified:
head/sbin/growfs/growfs.c
Modified: head/sbin/growfs/growfs.c
==============================================================================
--- head/sbin/growfs/growfs.c Wed May 8 18:39:12 2013 (r250376)
+++ head/sbin/growfs/growfs.c Wed May 8 18:55:38 2013 (r250377)
@@ -1544,7 +1544,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-head
mailing list