diff options
Diffstat (limited to 'meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch')
-rw-r--r-- | meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch b/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch deleted file mode 100644 index 095d00b1e2..0000000000 --- a/meta/recipes-devtools/fdisk/gptfdisk/0001-Fix-failure-crash-of-sgdisk-when-compiled-with-lates.patch +++ /dev/null | |||
@@ -1,46 +0,0 @@ | |||
1 | From e7f9c9909c27d6ceed5aa4ca17023a1bc94b620a Mon Sep 17 00:00:00 2001 | ||
2 | From: Rod Smith <rodsmith@rodsbooks.com> | ||
3 | Date: Fri, 15 Apr 2022 18:10:14 -0400 | ||
4 | Subject: [PATCH] Fix failure & crash of sgdisk when compiled with latest popt | ||
5 | (commit 740; presumably eventually release 1.19) | ||
6 | |||
7 | Upstream-Status: Backport [https://sourceforge.net/p/gptfdisk/code/ci/5d5e76d369a412bfb3d2cebb5fc0a7509cef878d/] | ||
8 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
9 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
10 | --- | ||
11 | NEWS | 8 ++++++++ | ||
12 | gptcl.cc | 2 +- | ||
13 | 2 files changed, 9 insertions(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/NEWS b/NEWS | ||
16 | index c7add56..9e153fd 100644 | ||
17 | --- a/NEWS | ||
18 | +++ b/NEWS | ||
19 | @@ -1,3 +1,11 @@ | ||
20 | +1.0.10 (?/??/2022): | ||
21 | +------------------- | ||
22 | + | ||
23 | +- Fixed problem that caused sgdisk to crash with errors about being unable | ||
24 | + to read the disk's partition table when compiled with the latest popt | ||
25 | + (commit 740, which is pre-release as I type; presumably version 1.19 and | ||
26 | + later once released). | ||
27 | + | ||
28 | 1.0.9 (4/14/2022): | ||
29 | ------------------ | ||
30 | |||
31 | diff --git a/gptcl.cc b/gptcl.cc | ||
32 | index 34c9421..0d578eb 100644 | ||
33 | --- a/gptcl.cc | ||
34 | +++ b/gptcl.cc | ||
35 | @@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { | ||
36 | } // while | ||
37 | |||
38 | // Assume first non-option argument is the device filename.... | ||
39 | - device = (char*) poptGetArg(poptCon); | ||
40 | + device = strdup((char*) poptGetArg(poptCon)); | ||
41 | poptResetContext(poptCon); | ||
42 | |||
43 | if (device != NULL) { | ||
44 | -- | ||
45 | 2.35.5 | ||
46 | |||