bug-parted
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

invalid diagnostic, FYI


From: Jim Meyering
Subject: invalid diagnostic, FYI
Date: Fri, 24 Jun 2011 15:27:41 +0200

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);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]