Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 May 2016 09:26:23 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r299416 - head/sbin/growfs
Message-ID:  <201605110926.u4B9QNOk096125@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Wed May 11 09:26:23 2016
New Revision: 299416
URL: https://svnweb.freebsd.org/changeset/base/299416

Log:
  Cosmetic fixes for growfs(8) - remove unneeded capitalization and a spurious
  newline, clarify a message.
  
  MFC after:	1 month
  Sponsored by:	The FreeBSD Foundation

Modified:
  head/sbin/growfs/growfs.c

Modified: head/sbin/growfs/growfs.c
==============================================================================
--- head/sbin/growfs/growfs.c	Wed May 11 07:58:43 2016	(r299415)
+++ head/sbin/growfs/growfs.c	Wed May 11 09:26:23 2016	(r299416)
@@ -1540,12 +1540,12 @@ main(int argc, char **argv)
 		humanize_number(newsizebuf, sizeof(newsizebuf),
 		    sblock.fs_size * sblock.fs_fsize,
 		    "B", HN_AUTOSCALE, HN_B | HN_NOSPACE | HN_DECIMAL);
-		printf(" from %s to %s? [Yes/No] ", oldsizebuf, newsizebuf);
+		printf(" from %s to %s? [yes/no] ", oldsizebuf, newsizebuf);
 		fflush(stdout);
 		fgets(reply, (int)sizeof(reply), stdin);
-		if (strcasecmp(reply, "Yes\n")){
-			printf("\nNothing done\n");
-			exit (0);
+		if (strcasecmp(reply, "yes\n")){
+			printf("Response other than \"yes\"; aborting\n");
+			exit(0);
 		}
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605110926.u4B9QNOk096125>