diff options
author | Karel Zak | 2015-01-28 09:57:03 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-28 09:57:03 +0100 |
commit | bf031d89eabf71164f8225fe49849116be560ee5 (patch) | |
tree | 8f3d68b82cbd86fa7458ece5589ae1fbe444ea2e /disk-utils | |
parent | Merge branch 'fix-tests-ppc' of https://github.com/rudimeier/util-linux (diff) | |
download | kernel-qcow2-util-linux-bf031d89eabf71164f8225fe49849116be560ee5.tar.gz kernel-qcow2-util-linux-bf031d89eabf71164f8225fe49849116be560ee5.tar.xz kernel-qcow2-util-linux-bf031d89eabf71164f8225fe49849116be560ee5.zip |
libfdisk: support unknown partition types in sfdisk scripts
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1183234
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/sfdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/sfdisk.c b/disk-utils/sfdisk.c index f9f733b48..997623125 100644 --- a/disk-utils/sfdisk.c +++ b/disk-utils/sfdisk.c @@ -715,9 +715,9 @@ static int command_parttype(struct sfdisk *sf, int argc, char **argv) if (sf->backup) backup_partition_table(sf, devname); - /* parse <type> and apply yo PT */ + /* parse <type> and apply to PT */ type = fdisk_label_parse_parttype(lb, typestr); - if (!type || fdisk_parttype_is_unknown(type)) + if (!type) errx(EXIT_FAILURE, _("failed to parse %s partition type '%s'"), fdisk_label_get_name(lb), typestr); |