Bug 837067

Summary: rpm -qf claims that file in non-standard path with symlinked dir belongs to package
Product: [Fedora] Fedora Reporter: Petr Lautrbach <plautrba>
Component: rpmAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: ffesti, jnovy, packaging-team, pknirsch, pmatilai
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-03 05:32:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Lautrbach 2012-07-02 16:16:19 UTC
Version-Release number of selected component (if applicable):
rpm-4.9.1.3-7.fc17.x86_64

How reproducible:
always

Steps to Reproduce:
# ln -s /usr/bin/ /root/bin

# rpm -qf /root/bin/ls
coreutils-8.15-6.fc17.x86_64

# rpm -ql coreutils | grep /bin/ls
/usr/bin/ls

  
Actual results:


Expected results:


Additional info:

Comment 1 Panu Matilainen 2012-07-03 05:32:01 UTC
And? The file you see through /root/bin/ls IS the same thing (same inode really) as /usr/bin/ls, and coreutils owns it. The /root/bin symlink is not owned by anybody however.