Bug 500095 - setfacl fails to correctly resolve relative symlinks to directories
Summary: setfacl fails to correctly resolve relative symlinks to directories
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: acl
Version: 5.3
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Jiri Moskovcak
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-05-11 01:02 UTC by Travers Carter
Modified: 2015-02-01 22:48 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-09 08:30:39 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1652 0 normal SHIPPED_LIVE acl bug fix update 2009-12-09 08:30:10 UTC

Description Travers Carter 2009-05-11 01:02:37 UTC
Description of problem:
setfacl fails to resolve relative symlinks to directories on the command line unless specified with a trailing slash or $PWD is the directory containing the relative symlink.  The behaviour appears both with and without the -P or -L options

Version-Release number of selected component (if applicable):
acl-2.2.39-3.el5

How reproducible:
Always

Steps to Reproduce:
1. mkdir -p /tmp/test/test2
2. mkdir /tmp/test/target-dir
3. cd /tmp/test/test2
4. ln -s ../target-dir ./relative-symlink
5. cd ..
6. setfacl -b test2/relative-symlink
  
Actual results:
setfacl: test2/relative-symlink: No such file or directory

Expected results:
No output, extended acls are removed (-b)

Additional info:
Specifying a slash after the relative symlink, eg "test2/relative-symlink/" OR changing into the directory containing the symlink works around the problem.
Also the problem doesn't seem to affect symlinks targeting files as opposed to directories.

Comment 1 Travers Carter 2009-05-11 01:17:01 UTC
On further checking it appears that the problem does also apply to symlinks targeting files (as well as directories)

Comment 7 errata-xmlrpc 2009-12-09 08:30:39 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1652.html


Note You need to log in before you can comment on or make changes to this bug.