Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 681866
Collapse All | Expand All

(-)a/checkcopyattrs.sh (+3 lines)
Lines 49-54 setfattr -n user.pax.flags -v "r" c Link Here
49
[ "$(getfattr --only-values -n user.bas f/a)" == "x" ]
49
[ "$(getfattr --only-values -n user.bas f/a)" == "x" ]
50
[ "$(getfattr --only-values -n user.pax.flags f/a)" == "mr" ]
50
[ "$(getfattr --only-values -n user.pax.flags f/a)" == "mr" ]
51
51
52
# Check that we can copy large files
53
truncate -s2G a
54
./install-xattr a x
52
55
53
# The following are just tests to make sure the raw install
56
# The following are just tests to make sure the raw install
54
# options don't get lost in our optargs parsing.
57
# options don't get lost in our optargs parsing.
(-)a/install-xattr.c (-2 / +6 lines)
Lines 365-372 main(int argc, char* argv[]) Link Here
365
365
366
			if (!opts_target_directory) {
366
			if (!opts_target_directory) {
367
				target = argv[last];
367
				target = argv[last];
368
				if (stat(target, &s) != 0)
368
				if (stat(target, &s) != 0) {
369
					err(1, "failed to stat %s", target);
369
					return EXIT_FAILURE;
370
					return EXIT_FAILURE;
371
				}
370
				target_is_directory = S_ISDIR(s.st_mode);
372
				target_is_directory = S_ISDIR(s.st_mode);
371
			} else {
373
			} else {
372
				/* target was set above with the -t option */
374
				/* target was set above with the -t option */
Lines 381-388 main(int argc, char* argv[]) Link Here
381
					last++;
383
					last++;
382
384
383
				for (i = first; i < last; i++) {
385
				for (i = first; i < last; i++) {
384
					if (stat(argv[i], &s) != 0)
386
					if (stat(argv[i], &s) != 0) {
387
						err(1, "failed to stat %s", argv[i]);
385
						return EXIT_FAILURE;
388
						return EXIT_FAILURE;
389
					}
386
					/* We reproduce install's behavior and skip
390
					/* We reproduce install's behavior and skip
387
					 * all extra directories on the command line
391
					 * all extra directories on the command line
388
					 * that are not the final target directory.
392
					 * that are not the final target directory.

Return to bug 681866