Bug 461362

Summary: Missing error message for unsupported files in rpm -qp
Product: [Fedora] Fedora Reporter: Ville Skyttä <ville.skytta>
Component: rpmAssignee: Panu Matilainen <pmatilai>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: ffesti, jnovy, marco.crosio, pnasrat, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-10-01 09:03:07 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 Ville Skyttä 2008-09-06 16:07:11 UTC
rpm -q just exits silently when fed an unsupported file or a dir:

rpm -qp /bin      # directory
rpm -qp /bin/rpm  # binary file

The exit status is fine (1).  I'd additionally expect to see some kind of an error message.

Comment 1 Panu Matilainen 2008-09-18 09:16:59 UTC
Yup, fixed upstream now...

Comment 2 Panu Matilainen 2008-10-01 09:03:07 UTC
...and rawhide too now (rpm-4.5.90-0.git8514.1)