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