projects
/
platform
/
upstream
/
coreutils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cp: add an option to only copy the file attributes
[platform/upstream/coreutils.git]
/
tests
/
cp
/
reflink-perm
diff --git
a/tests/cp/reflink-perm
b/tests/cp/reflink-perm
index
92cb7ae
..
77f119f
100755
(executable)
--- a/
tests/cp/reflink-perm
+++ b/
tests/cp/reflink-perm
@@
-39,4
+39,8
@@
test "$mode" = "-rwxrwxrwx" || fail=1
test copy -nt file && fail=1
+echo > file2 # file with data
+cp --reflink=auto --preserve --attributes-only file2 empty_copy || fail=1
+test -s empty_copy && fail=1
+
Exit $fail