Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 514936 | Differences between
and this patch

Collapse All | Expand All

(-)a/misc/install-xattr/checkcopyattrs.sh (-1 / +10 lines)
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" ]
(-)a/misc/install-xattr/install-xattr.c (-2 / +1 lines)
Lines 382-388 main(int argc, char* argv[]) Link Here
382
					if (S_ISDIR(s.st_mode))
382
					if (S_ISDIR(s.st_mode))
383
						continue;
383
						continue;
384
384
385
					path = path_join(target, argv[i]);
385
					path = path_join(target, basename(argv[i]));
386
					copyxattr(argv[i], path);
386
					copyxattr(argv[i], path);
387
					free(path);
387
					free(path);
388
				}
388
				}
389
- 

Return to bug 514936