The query code checks the package provides for strings that don't contain slashes. This leads to false reports: $ cd /tmp $ touch rpm $ rpm -qf rpm rpm-4.3.1-0.3
Created attachment 100964 [details] Proposed patch
Hmmm, this doesn't reproduce for me with rpm HEAD. Do you perhaps have Provides: /bin/rpm in your rpm package?
Every package provides its own package name. I don't know why you cannot reproduce it, I can do so on Fedora.
Fedora Core 2 is now maintained by the Fedora Legacy project for security updates only. If this problem is a security issue, please reopen and reassign to the Fedora Legacy product. If it is not a security issue and hasn't been resolved in the current FC3 updates or in the FC4 test release, reopen and change the version to match.
FWIW, I can reproduce this problem too on FC3.
Just trying to reproduce on rawhide-ish. [pauln@anu ~]$ cd /tmp [pauln@anu tmp]$ touch rpm [pauln@anu tmp]$ rpm -qf rpm file /tmp/rpm is not owned by any package [pauln@anu tmp]$ rpm -q rpm rpm-4.4.1-9 Will try on FC3 in the morning.
Can't reproduce on rawhide. please reopen if you are still experiencing this on FC4/rawhide