Hello community, here is the log from the commit of package parted for openSUSE:Factory checked in at 2019-07-31 14:15:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/parted (Old) and /work/SRC/openSUSE:Factory/.parted.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "parted" Wed Jul 31 14:15:02 2019 rev:128 rq:718780 version:3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/parted/parted.changes 2019-07-22 12:17:04.891716851 +0200 +++ /work/SRC/openSUSE:Factory/.parted.new.4126/parted.changes 2019-07-31 14:15:03.498822681 +0200 @@ -1,0 +2,7 @@ +Wed Jul 10 10:16:16 UTC 2019 - Anna Maresova <anicka@suse.com> + +- changed: parted-fix-crash-due-to-improper-partition-number-in.patch + Changed the patch to behave in the same way like before last change + for numbers with leading zeroes. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ parted-fix-crash-due-to-improper-partition-number-in.patch ++++++ --- /var/tmp/diff_new_pack.PLavOw/_old 2019-07-31 14:15:05.046819818 +0200 +++ /var/tmp/diff_new_pack.PLavOw/_new 2019-07-31 14:15:05.046819818 +0200 @@ -23,10 +23,10 @@ parted/ui.c | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) -diff --git a/parted/ui.c b/parted/ui.c -index 505b8ac..5d76c20 100644 ---- a/parted/ui.c -+++ b/parted/ui.c +Index: parted-3.2/parted/ui.c +=================================================================== +--- parted-3.2.orig/parted/ui.c ++++ parted-3.2/parted/ui.c @@ -29,6 +29,8 @@ #include <unistd.h> #include <setjmp.h> @@ -36,7 +36,7 @@ #include "command.h" #include "strlist.h" -@@ -909,16 +911,30 @@ command_line_get_integer (const char* prompt, int* value) +@@ -912,16 +914,34 @@ command_line_get_integer (const char* pr { char def_str [10]; char* input; @@ -51,7 +51,11 @@ - valid = sscanf (input, "%d", value); + + errno = 0; -+ ret = strtol (input, (char**) NULL, 0); ++ ++ if (strstr(input, "0x") == input) ++ ret = strtol (input, (char**) NULL, 16); ++ else ++ ret = strtol (input, (char**) NULL, 10); + if (errno) + goto error; + @@ -70,7 +74,7 @@ } int -@@ -1029,6 +1045,7 @@ command_line_get_partition (const char* prompt, PedDisk* disk, +@@ -1031,6 +1051,7 @@ command_line_get_partition (const char* PedPartition** value) { PedPartition* part; @@ -78,7 +82,7 @@ /* Flawed logic, doesn't seem to work?! check = ped_disk_next_partition (disk, part); -@@ -1045,7 +1062,8 @@ command_line_get_partition (const char* prompt, PedDisk* disk, +@@ -1047,7 +1068,8 @@ command_line_get_partition (const char* */ int num = (*value) ? (*value)->num : 0; @@ -88,6 +92,3 @@ ped_exception_throw (PED_EXCEPTION_ERROR, PED_EXCEPTION_CANCEL, _("Expecting a partition number.")); --- -2.16.4 -