diff options
| author | Karel Zak <kzak@redhat.com> | 2013-03-05 15:14:04 +0100 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-03-11 13:00:58 +0100 |
| commit | e09435aa538d9edc13880a25b912979923a561cd (patch) | |
| tree | 933ccb63f57e8ab94eeb642354eb9f19a82e9d4b /fdisks/fdisk.c | |
| parent | 01b207133e46517b6930785834e1ab310ad3f7cf (diff) | |
| download | util-linux-e09435aa538d9edc13880a25b912979923a561cd.tar.gz | |
fdisk: (bds) use nested partition table
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
| -rw-r--r-- | fdisks/fdisk.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index 31a7e50b..127a5f20 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -1084,9 +1084,13 @@ static void command_prompt(struct fdisk_context *cxt) if (fdisk_is_disklabel(cxt, SGI)) sgi_set_bootfile(cxt); else if (fdisk_is_disklabel(cxt, DOS)) { - fdisk_context_switch_label(cxt, "bsd"); - bsd_command_prompt(cxt); - fdisk_context_switch_label(cxt, "dos"); + + struct fdisk_context *bsd; + + bsd = fdisk_new_nested_context(cxt, "bsd"); + if (bsd) + bsd_command_prompt(bsd); + fdisk_free_context(bsd); } else unknown_command(c); break; |
