diff options
author | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-15 18:10:14 -0400 |
---|---|---|
committer | Rod Smith <rodsmith@rodsbooks.com> | 2022-04-15 18:10:14 -0400 |
commit | 5d5e76d369a412bfb3d2cebb5fc0a7509cef878d (patch) | |
tree | f419f2967fd01cfb9c4379ce89313379baecb0f0 | |
parent | 1d46f3723bc25f5598266f7d9a3548af3cee0c77 (diff) | |
download | gptfdisk-5d5e76d369a412bfb3d2cebb5fc0a7509cef878d.tar.gz |
Fix failure & crash of sgdisk when compiled with latest popt (commit 740; presumably eventually release 1.19)
-rw-r--r-- | NEWS | 8 | ||||
-rw-r--r-- | gptcl.cc | 2 | ||||
-rw-r--r-- | support.h | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +1.0.10 (?/??/2022): +------------------- + +- Fixed problem that caused sgdisk to crash with errors about being unable + to read the disk's partition table when compiled with the latest popt + (commit 740, which is pre-release as I type; presumably version 1.19 and + later once released). + 1.0.9 (4/14/2022): ------------------ @@ -155,7 +155,7 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) { } // while // Assume first non-option argument is the device filename.... - device = (char*) poptGetArg(poptCon); + device = strdup((char*) poptGetArg(poptCon)); poptResetContext(poptCon); if (device != NULL) { @@ -8,7 +8,7 @@ #include <stdlib.h> #include <string> -#define GPTFDISK_VERSION "1.0.9" +#define GPTFDISK_VERSION "1.0.9.1" #if defined (__FreeBSD__) || defined (__FreeBSD_kernel__) || defined (__APPLE__) // Darwin (Mac OS) & FreeBSD: disk IOCTLs are different, and there is no lseek64 |