Reading a truncated GPT partition table, I saw this: $ ./parted bad WARNING: You are not superuser. Watch out for permissions. GNU Parted 3.0.3-5a86 Using /h/j/w/co/parted/6/parted/bad Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) u s p Error: end of file while reading Success Retry/Ignore/Cancel?
Obviously not intended. Here's a fix: diff --git a/libparted/arch/linux.c b/libparted/arch/linux.c index bfe2982..bc42750 100644 --- a/libparted/arch/linux.c +++ b/libparted/arch/linux.c @@ -1750,7 +1750,7 @@ linux_read (const PedDevice* dev, void* buffer, PedSector start, PED_EXCEPTION_ERROR, PED_EXCEPTION_RETRY_IGNORE_CANCEL, (status == 0 - ? _("end of file while reading %s") + ? _("%0.0send of file while reading %s") : _("%s during read on %s")), strerror (errno), dev->path); _______________________________________________ bug-parted mailing list bug-parted@gnu.org https://lists.gnu.org/mailman/listinfo/bug-parted