211 lines
3.4 KiB
Diff
211 lines
3.4 KiB
Diff
From: Brandon Philips <bphilips@suse.de>
|
|
Subject: [PATH] acl: add getfacl -R -L -P tests
|
|
|
|
Test fixes to walk_tree.c by Andreas.
|
|
|
|
Signed-off-by: Brandon Philips <bphilips@suse.de>
|
|
|
|
---
|
|
test/getfacl-recursive.test | 194 ++++++++++++++++++++++++++++++++++++++++++++
|
|
1 file changed, 194 insertions(+)
|
|
|
|
Index: acl-2.2.47/test/getfacl-recursive.test
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ acl-2.2.47/test/getfacl-recursive.test
|
|
@@ -0,0 +1,194 @@
|
|
+Tests for proper path recursion
|
|
+
|
|
+ $ mkdir -p 1/2/3
|
|
+ $ mkdir 1/link
|
|
+ $ touch 1/link/file
|
|
+ $ ln -s `pwd`/1/link 1/2/link
|
|
+ $ getfacl -P -R 1/2
|
|
+ > # file: 1/2
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/3
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+
|
|
+ $ getfacl -R 1/2
|
|
+ > # file: 1/2
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/3
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+
|
|
+ $ getfacl -R -L 1/2
|
|
+ > # file: 1/2
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/3
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/link
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/link/file
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rw-
|
|
+ > group::r--
|
|
+ > other::r--
|
|
+ >
|
|
+
|
|
+ $ getfacl -P -R 1
|
|
+ > # file: 1
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/3
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/link
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/link/file
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rw-
|
|
+ > group::r--
|
|
+ > other::r--
|
|
+ >
|
|
+
|
|
+ $ getfacl -R 1
|
|
+ > # file: 1
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/3
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/link
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/link/file
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rw-
|
|
+ > group::r--
|
|
+ > other::r--
|
|
+ >
|
|
+
|
|
+ $ getfacl -R -L 1
|
|
+ > # file: 1
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/3
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/link
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/2/link/file
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rw-
|
|
+ > group::r--
|
|
+ > other::r--
|
|
+ >
|
|
+ > # file: 1/link
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rwx
|
|
+ > group::r-x
|
|
+ > other::r-x
|
|
+ >
|
|
+ > # file: 1/link/file
|
|
+ > # owner: %TUSER
|
|
+ > # group: %TGROUP
|
|
+ > user::rw-
|
|
+ > group::r--
|
|
+ > other::r--
|
|
+ >
|
|
+
|
|
+ $ rm -R 1/
|