From f57835ab97cb06b8f75928ac7cfb36330178f1af Mon Sep 17 00:00:00 2001 From: eadler Date: Tue, 25 Jun 2013 20:02:57 +0000 Subject: [PATCH] MFC r250377: Allow the use of lowercase 'yes' PR: bin/178422 git-svn-id: svn://svn.freebsd.org/base/stable/9@252210 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- 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 70c108bc3..2cb6fd153 100644 --- a/sbin/growfs/growfs.c +++ b/sbin/growfs/growfs.c @@ -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); } -- 2.45.0