Bug 123844

Summary: rpm -qf misparses file argument
Product: [Fedora] Fedora Reporter: Davide Bolcioni <davide_bolcioni>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: athlon   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-06-01 14:01:23 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 Davide Bolcioni 2004-05-20 22:13:25 UTC
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

How reproducible:
Always.

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
  
Actual results:
"error: file
/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.

Expected results:
file /usr/share/afterstep/start/Desktop/Update.../10_updatefeel is not
owned by any package. 

Additional info:
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
upgrades.

Comment 1 Jeff Johnson 2004-06-01 14:01:23 UTC
Fixed in cvs, rpm-4_3 and HEAD. The fix should be in rpm-4.3.2
when built.