GNU bug report logs -
#20225
Email bug report because web-based bug tracking tool is down
Previous Next
Full log
Message #11 received at 20225 <at> debbugs.gnu.org (full text, mbox):
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I'm not sure this isn't actually intentional. What should parted do
when run in scripting mode? There all exceptions are unhandled, so a
sane default action must be taken. I think this particular error
really should be a warning, and the default is to proceed, using the
backup copy.
On 3/30/2015 12:42 PM, Brian C. Lane wrote:
> On Sun, Mar 29, 2015 at 01:09:04PM +0000, Nugent, Bill wrote:
>> In case I forget I wanted to report a bug with parted where
>> Control-C is treated as an OK response. I was testing how parted
>> handled a corrupt primary GPT and was rewarded with parted asking
>> if I wanted to use the backup GPT instead with the prompt:
>> "OK/Cancel? " I typed Control-C and it took it as an OK
>> response.
>>
>>
>> $ parted fu print unit s print unit chs print
>>
>> WARNING: You are not superuser. Watch out for permissions.
>>
>> Error: The primary GPT table is corrupt, but the backup appears
>> OK, so that will be used.
>>
>> parted: invalid token: unit
>>
>> OK/Cancel? ^C
>>
>> Model: (file)
>>
>> Disk /path/to/changed/fu: 4001GB
>>
>> Sector size (logical/physical): 512B/512B
>>
>> Partition Table: gpt
>
> Thanks for the report, it looks like we've got some places where
> ped_exception_throw return values aren't being checked properly --
> ^C should generate a PED_EXCEPTION_UNHANDLED and I see a number of
> places that don't take that into account.
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
iQEcBAEBAgAGBQJVGa48AAoJENRVrw2cjl5RjnMIALMtOsiRdqnKIMucQkZQMPcN
4TYCYY/Dc89jlkyVprpYjM0NjvKAvrrQYkl92CRZTevI1ghm4YkqIyy3o1bhLj53
ZD+nXo4ID1/IO0G51GjnRCcZWAiyKrNPxUUDlZVh7j4Ofw5m1Fsl3fjlaeJB7OLG
DDKERQOlYYAtnSyti/qaVX3CYZkjJwBtCb0HZAainpBRFggE7L47fHw/OL3Lpdie
HO/FgPBJbW6FKOHNPzInNwrVqblObIubXNaPyd0M4A0uqNjVuhMjtmjpMePwDR6b
z0FnCTh6Xy+wL4Qj5PFY8k33Sksv3JQpMXBUlSzuzu8UfqOg6GH+csA4OLeLF7M=
=J2Mr
-----END PGP SIGNATURE-----
This bug report was last modified 10 years and 81 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.