summaryrefslogtreecommitdiffstats
path: root/fdisks/fdisk.c
diff options
context:
space:
mode:
authorKarel Zak2013-05-17 15:26:31 +0200
committerKarel Zak2013-09-16 16:46:55 +0200
commit287ce9ed6c105ea970b62847a08e745aa2a876da (patch)
treedc7142471ebd992ce7c0e16345fd3ead8a0538ff /fdisks/fdisk.c
parentfdisk: use new menus (diff)
downloadkernel-qcow2-util-linux-287ce9ed6c105ea970b62847a08e745aa2a876da.tar.gz
kernel-qcow2-util-linux-287ce9ed6c105ea970b62847a08e745aa2a876da.tar.xz
kernel-qcow2-util-linux-287ce9ed6c105ea970b62847a08e745aa2a876da.zip
fdisk: make internal command line case sensitive
Hey, this is Linux, year 2013... Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
-rw-r--r--fdisks/fdisk.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c
index 0034b5240..8734d5c9c 100644
--- a/fdisks/fdisk.c
+++ b/fdisks/fdisk.c
@@ -730,7 +730,7 @@ expert_command_prompt(struct fdisk_context *cxt)
assert(cxt->label);
putchar('\n');
- c = tolower(read_char(cxt, _("Expert command (m for help): ")));
+ c = read_char(cxt, _("Expert command (m for help): "));
switch (c) {
case 'a':
if (fdisk_is_disklabel(cxt, SUN))
@@ -765,6 +765,8 @@ expert_command_prompt(struct fdisk_context *cxt)
dos_fix_partition_table_order(cxt);
break;
case 'g':
+ /* Deprecated, use 'G' in main menu, just for backward
+ * compatibility only. */
fdisk_create_disklabel(cxt, "sgi");
break;
case 'h':
@@ -927,7 +929,7 @@ static void command_prompt(struct fdisk_context *cxt)
assert(cxt->label);
putchar('\n');
- c = tolower(read_char(cxt, _("Command (m for help): ")));
+ c = read_char(cxt, _("Command (m for help): "));
switch (c) {
case 'a':
if (fdisk_is_disklabel(cxt, DOS) &&
@@ -978,6 +980,9 @@ static void command_prompt(struct fdisk_context *cxt)
case 'g':
fdisk_create_disklabel(cxt, "gpt");
break;
+ case 'G':
+ fdisk_create_disklabel(cxt, "sgi");
+ break;
case 'i':
if (fdisk_is_disklabel(cxt, SGI))
create_sgiinfo(cxt);