From 30d1b8945601aa29dea6d33c8a6bf30d77e6c373 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 9 Aug 2010 17:31:46 +0000 Subject: Improve the editor prompt for the 'R' (resize) command from otto --- sbin/disklabel/editor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index 425525873a3..509969a7c5d 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.241 2010/07/27 00:49:42 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.242 2010/08/09 17:31:45 deraadt Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller @@ -726,7 +726,8 @@ editor_resize(struct disklabel *lp, char *p) fputs("Cannot resize spoofed partition\n", stderr); return; } - secs = getuint(lp, "resize", "amount to grow (+) or shrink (-)", + secs = getuint(lp, "grow (+) or shrink (-) (with unit)", + "amount to grow (+) or shrink (-) partition including unit", 0, editor_countfree(lp), 0, DO_CONVERSIONS); if (secs == 0 || secs == -1) { -- cgit v1.2.3