aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2016-05-11 09:26:23 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2016-05-11 09:26:23 +0000
commitb8a1930fcfed54ec7bba10d9ee3f857a4e89d543 (patch)
tree758684145c692c9d5436c280790450e49be4280c /sbin
parent8457719578f954cf7d10ae9d138601b1eb287758 (diff)
downloadsrc-b8a1930fcfed54ec7bba10d9ee3f857a4e89d543.tar.gz
src-b8a1930fcfed54ec7bba10d9ee3f857a4e89d543.zip
Cosmetic fixes for growfs(8) - remove unneeded capitalization and a spurious
newline, clarify a message. MFC after: 1 month Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=299416
Diffstat (limited to 'sbin')
-rw-r--r--sbin/growfs/growfs.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/growfs/growfs.c b/sbin/growfs/growfs.c
index 6d633a2da71b..a212d13d3521 100644
--- a/sbin/growfs/growfs.c
+++ b/sbin/growfs/growfs.c
@@ -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);
}
}