From b41b20fa98c09c611a80ebcfebd518bafebb3198 Mon Sep 17 00:00:00 2001 From: eadler Date: Wed, 8 May 2013 18:55:38 +0000 Subject: Allow the use of lowercase 'yes' PR: bin/178422 Submitted by: Garrett Cooper --- sbin/growfs/growfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.1