1 From 624a8b14af7d358782ecc12627c84da72c28aeff Mon Sep 17 00:00:00 2001
2 From: Phillip Susi <psusi@ubuntu.com>
3 Date: Tue, 13 Jan 2015 11:05:48 -0500
4 Subject: [PATCH 08/11] parted: don't crash in disk_set when disk label not
7 Due to a typeo in commit 7eac058 "parted: don't reload partition
8 table on every command", the disk_set command would crash if
9 a disk label was not found.
12 parted/parted.c | 2 +-
13 2 files changed, 3 insertions(+), 1 deletion(-)
15 diff --git a/NEWS b/NEWS
16 index da7db50..10c9a6e 100644
19 @@ -4,6 +4,8 @@ GNU parted NEWS -*- outline -*-
23 + Don't crash in the disk_set command when a disk label is not found
25 libparted-fs-resize: Prevent crash resizing FAT16 file systems.
28 diff --git a/parted/parted.c b/parted/parted.c
29 index f27a035..2678554 100644
32 @@ -1684,7 +1684,7 @@ do_disk_set (PedDevice** dev, PedDisk** diskp)
35 *diskp = ped_disk_new (*dev);
40 if (!command_line_get_disk_flag (_("Flag to Invert?"), *diskp, &flag))