OSDN Git Service

linux_read: give a proper diagnostic for an "end of file" error
authorJim Meyering <meyering@redhat.com>
Fri, 13 Nov 2009 12:43:58 +0000 (13:43 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 13 Nov 2009 13:10:37 +0000 (14:10 +0100)
commit6a84782b40b888ed839512afbc0f75d97911799d
treec87c274e625840cb3d73c808c84513b40793e81d
parent4312698a11abed988b5bacca0ecbec151de045e3
linux_read: give a proper diagnostic for an "end of file" error

Before today's gpt_probe bug fix, its test case would provoke
an invalid diagnostic.  This makes the diagnostic useful.
* libparted/arch/linux.c (linux_read): When hitting EOF while reading,
diagnose it properly, rather than via strerror(0) (i.e., "Success").
libparted/arch/linux.c