Bug 126287
Summary: | rpm -V will sometimes flag size difference when --nomd5 is used but not without --nomd5 option | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bret Hughes <bhughes> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED NOTABUG | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | athlon | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-06-19 04:46:18 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Bret Hughes
2004-06-18 14:49:21 UTC
# rpm -V passwd ethereal # rpm -V --nomd5 passwd ethereal S........ /usr/bin/passwd S........ /usr/lib/libethereal.0.0.1 S........ /usr/lib/libwiretap.so.0.0.1 S........ /usr/sbin/editcap S........ /usr/sbin/mergecap S........ /usr/sbin/tethereal S........ /usr/sbin/text2pcap Yup. all those files are prelinked, and there are different means to get the file size depending on whether --nomd5 was specified or not. When computing the MD5 digest, the size is the number of bytes written from the pipe to prelink --undo, while with --nomd5, the size is what is actually on the file system (which has been modified by prelinking the file) # ls -al /usr/bin/passwd -r-s--x--x 1 root root 92757 Feb 15 13:04 /usr/bin/passwd # prelink -u /usr/bin/passwd # ls -al /usr/bin/passwd -r-s--x--x 1 root root 89273 Feb 15 13:04 /usr/bin/passwd # rpm -V passwd # rpm -V --nomd5 passwd # It's not at all clear what the fix is, the behavior using the prelink -u helper is the expected behavior, --nomd5 is the surprising behavior (but is actually accurate, check with ls). Alternatively, disable the size check if/when using --nomd5. # rpm -V --nomd5 passwd S........ /usr/bin/passwd # rpm -V --nomd5 --nosize passwd # |