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
Created attachment 100964 [details]
Hmmm, this doesn't reproduce for me with rpm HEAD.
Do you perhaps have
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
Will try on FC3 in the morning.
Can't reproduce on rawhide. please reopen if you are still experiencing this on