Red Hat Bugzilla – Bug 175740
rpm --verify reports spurious md5 errors for empty files
Last modified: 2007-11-30 17:07:22 EST
Patch might need updating. Let me know if it does.
+++ This bug was initially created as a clone of Bug #159405 +++
If you use "rpm --verify" on a package with empty files, rpm will report "?"
in the MD5 column for the empty files. This is because mmap files when you
try to map a file of length zero. Whether that failure is correct is, I
suppose, a matter of some debate; the man page doesn't make it clear, although
the specs may be clearer. In any case, the attached patch eliminates the
-- Additional comment from firstname.lastname@example.org on 2005-06-02 10:01 EST --
Created an attachment (id=115085)
patch not to try to mmap empty files
Fixed (by adding patch) in rpm-4.4.2 and later.
The updated package with that patch hasn't been released. Don't close.
NEEDINFO then so that I don't have to stare at a problem that is already fixed.
This issue is on Red Hat Engineering's list of planned work items
for the upcoming Red Hat Enterprise Linux 4.4 release. Engineering
resources have been assigned and barring unforeseen circumstances, Red
Hat intends to include this item in the 4.4 release.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.