summaryrefslogtreecommitdiff
path: root/testsuite/cp/cp-a-preserves-links
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/cp/cp-a-preserves-links')
-rw-r--r--testsuite/cp/cp-a-preserves-links5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/cp/cp-a-preserves-links b/testsuite/cp/cp-a-preserves-links
new file mode 100644
index 0000000..aae8313
--- /dev/null
+++ b/testsuite/cp/cp-a-preserves-links
@@ -0,0 +1,5 @@
+touch foo
+ln -s foo bar
+busybox cp -a bar baz
+test -L baz
+test `readlink baz` = "foo"