Fixed bug that caused sgdisk to not return an appropriate error code
(4) when it encountered write errors under some circumstances.
This commit is contained in:
3
NEWS
3
NEWS
@@ -1,6 +1,9 @@
|
||||
1.0.1 (?/??/2015):
|
||||
------------------
|
||||
|
||||
- Fixed bug that caused sgdisk to not return an appropriate error code
|
||||
when it encountered a write error when saving changes.
|
||||
|
||||
- Fixed bug that caused cgdisk's "Info" display to under-report the
|
||||
partition's size by one sector.
|
||||
|
||||
|
||||
3
gptcl.cc
3
gptcl.cc
@@ -463,7 +463,8 @@ int GPTDataCL::DoOptions(int argc, char* argv[]) {
|
||||
retval = 2;
|
||||
} // if/else loaded OK
|
||||
if ((saveData) && (!neverSaveData) && (saveNonGPT) && (!pretend)) {
|
||||
SaveGPTData(1);
|
||||
if (!SaveGPTData(1))
|
||||
retval = 4;
|
||||
}
|
||||
if (saveData && (!saveNonGPT)) {
|
||||
cout << "Non-GPT disk; not saving changes. Use -g to override.\n";
|
||||
|
||||
Reference in New Issue
Block a user