summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2002-03-11 23:42:35 +0000
committerNathan Scott <nathans@sgi.com>2002-03-11 23:42:35 +0000
commit84233d472fbea2750199c9785a3b28a079551905 (patch)
tree57b9f873ecab86d2ea58d1f06a562d2ed5ae3b9e /test
parent659175e0055fff18ebf5505ab1963dd00b8316a8 (diff)
downloadattr-84233d472fbea2750199c9785a3b28a079551905.tar.gz
man page and test script updates from Andreas. fix syscall numbering
a/ on sparc (fremovexattr was wrong) and b/ if arch doesn't have numbers defined yet, handle it cleanly (errno.h missing).
Diffstat (limited to 'test')
-rw-r--r--test/attr.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/attr.test b/test/attr.test
index 0e1c4b5..2a220be 100644
--- a/test/attr.test
+++ b/test/attr.test
@@ -168,3 +168,25 @@ $ ls -s f g h
0 g
0 h
$ rm f g h
+!
+! Attributes of symlinks vs. the files pointed to
+!
+$ touch f
+$ ln -s f l
+$ setfattr -n user.filename -v f l
+$ setfattr -h -n user.filename -v l l
+$ getfattr -d f l
+# file: f
+user.filename="f"
+
+# file: l
+user.filename="f"
+
+$ getfattr -h -d f l
+# file: f
+user.filename="f"
+
+# file: l
+user.filename="l"
+
+$ rm f l