Skip to content
Snippets Groups Projects
Commit 25ef3a57 authored by Bobi Jam's avatar Bobi Jam
Browse files

Branch b1_6

b=12584
i=adilger

There is a issue with getfacl which just literally find the symbol link
target with `pwd`+[symbol content], regardless where the link file is
located.

This fix avoids the issue by chdir to the symbol link's dir before getting it's
acl list.
parent b324b934
No related branches found
No related tags found
No related merge requests found
......@@ -45,9 +45,13 @@ filesystem with or without ACL support.
> # file: x
$ ln -s l ll
$ getfacl -dLR ll | grep file | sort
> # file: ll
> # file: ll/y
# $ getfacl -dLR ll | grep file | sort
# (rhel4)
# > # file: ll
# > # file: ll/y
# (rhel5)
# > # file: l
# > # file: l/y
$ rm l ll x
$ rm -rf d
......
......@@ -259,7 +259,10 @@ Symlink in directory with default ACL?
$ ls -dl -L d/l | awk '{print $1}'
> drwxr-x---+
$ getfacl --omit-header d/l
# XXX:there is an issue with getfacl dealing symbol link
# $ getfacl --omit-header d/l
$ cd d
$ getfacl --omit-header l
> user::rwx
> user:bin:rwx #effective:r-x
> user:daemon:r-x
......@@ -275,6 +278,8 @@ Symlink in directory with default ACL?
> default:mask::r-x
> default:other::---
>
# XXX
$ cd ..
$ rm d/l
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment