Lines 2-8
Link Here
|
2 |
set -e |
2 |
set -e |
3 |
|
3 |
|
4 |
touch a b c |
4 |
touch a b c |
5 |
mkdir -p d e |
5 |
mkdir -p d e f |
6 |
setfattr -n user.foo -v "bar" a |
6 |
setfattr -n user.foo -v "bar" a |
7 |
setfattr -n user.bas -v "x" a |
7 |
setfattr -n user.bas -v "x" a |
8 |
setfattr -n user.pax.flags -v "mr" a |
8 |
setfattr -n user.pax.flags -v "mr" a |
Lines 27-32
setfattr -n user.pax.flags -v "r" c
Link Here
|
27 |
[ "$(getfattr --only-values -n user.pax.flags d/b)" == "p" ] |
27 |
[ "$(getfattr --only-values -n user.pax.flags d/b)" == "p" ] |
28 |
[ "$(getfattr --only-values -n user.pax.flags d/c)" == "r" ] |
28 |
[ "$(getfattr --only-values -n user.pax.flags d/c)" == "r" ] |
29 |
|
29 |
|
|
|
30 |
# This tests if the src file was inside a directory |
31 |
# the correct dst location should be f/a. NOT f/d/a. |
32 |
./install-xattr d/a f |
33 |
|
34 |
[ -x f/a ] |
35 |
[ ! -x f/d/a ] |
36 |
[ "$(getfattr --only-values -n user.foo f/a)" == "bar" ] |
37 |
[ "$(getfattr --only-values -n user.bas f/a)" == "x" ] |
38 |
|
30 |
./install-xattr -t e a b c |
39 |
./install-xattr -t e a b c |
31 |
|
40 |
|
32 |
[ "$(getfattr --only-values -n user.foo e/a)" == "bar" ] |
41 |
[ "$(getfattr --only-values -n user.foo e/a)" == "bar" ] |