Red Hat Bugzilla – Bug 123844
rpm -qf misparses file argument
Last modified: 2007-11-30 17:10:43 EST
Description of problem:
When supplied a filename containing ... rpm erroneously reports that
it cannot find it.
Version-Release number of selected component (if applicable): 4.2.1-0.30
Steps to Reproduce:
1. mkdir -p /usr/share/afterstep/start/Desktop/Update...
2. touch /usr/share/afterstep/start/Desktop/Update.../10_updatefeel
3. rpm -qf /usr/share/afterstep/start/Desktop/Update.../10_updatefeel
/usr/share/afterstep/start/Desktop/Update../10_updatefeel: No such
file or directory"
Please note that it lost a dot: there are three dots trailing "Update"
but it is reporting two; ls -l confirms the file is there.
file /usr/share/afterstep/start/Desktop/Update.../10_updatefeel is not
owned by any package.
If I do "cd /usr/share/afterstep/start/Desktop/Update..." followed
by "rpm -qf *" I get the correct result. In case you wonder, the above
file was from the old AfterStep-1.8.0-1 RPM and survived many RedHat
Fixed in cvs, rpm-4_3 and HEAD. The fix should be in rpm-4.3.2