Bug 18057 - RPM -qf broken
Summary: RPM -qf broken
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-10-02 06:10 UTC by Chris Yeo
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-10-02 06:10:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Chris Yeo 2000-10-02 06:10:29 UTC
When rpm -qf is run with an arguement that includes a file like ./testfile 
you get an unexpected result:

root@chris:[ /etc/sane.d ] rpm -qf ./apple.conf   
file /apple.conf: No such file or directory

And from a 'strace' it is actually trying to access the file /apple.conf

access("/apple.conf", F_OK)             = -1 ENOENT (No such file or 
directory)

Thanks

Chris

Comment 1 Jeff Johnson 2000-10-03 17:11:41 UTC
The following works for me
	bash $cd /bin
	bash$ rpm -qf ./rpm
	rpm-4.0.1-0.5

Comment 2 Chris Yeo 2000-10-04 00:02:03 UTC
I think that this is easiest explained by using a 'newer' version of RPM than I
have.  Is that the version that comes on the ISO's?

cyeo@chris:[ /bin ] rpm -qf /bin/rpm
rpm-4.0-4


Note You need to log in before you can comment on or make changes to this bug.