summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2013-05-08 18:55:38 +0000
committereadler <eadler@FreeBSD.org>2013-05-08 18:55:38 +0000
commitb41b20fa98c09c611a80ebcfebd518bafebb3198 (patch)
tree1dbdb0d3eb1b00ab087702b831ba4c65d335963e
parentd59507806675c29c427a3989dacb5d4f12da6be3 (diff)
downloadFreeBSD-src-b41b20fa98c09c611a80ebcfebd518bafebb3198.zip
FreeBSD-src-b41b20fa98c09c611a80ebcfebd518bafebb3198.tar.gz
Allow the use of lowercase 'yes'
PR: bin/178422 Submitted by: Garrett Cooper <yaneurabeya@gmail.com>
-rw-r--r--sbin/growfs/growfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index fe49efb..b8a81c2 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -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);
}
OpenPOWER on IntegriCloud