aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-27 22:06:24 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-27 22:06:24 +0000
commitc0431ed455a601ddbfcd9f30d6397d4e9145cf54 (patch)
tree7eade59699338d065827751d37e72e45d2b4440b /testsuite/cp
parent4809a9f78eecc7346e5d73b7f60ae6c51e057632 (diff)
downloadbusybox-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.tar.gz
cp: fix "cp -RL" to create regular files even if src is a symlink
Diffstat (limited to 'testsuite/cp')
-rw-r--r--testsuite/cp/cp-RHL-does_not_preserve-links6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/cp/cp-RHL-does_not_preserve-links b/testsuite/cp/cp-RHL-does_not_preserve-links
new file mode 100644
index 000000000..eed6c3ec5
--- /dev/null
+++ b/testsuite/cp/cp-RHL-does_not_preserve-links
@@ -0,0 +1,6 @@
+mkdir a
+>a/file
+ln -s file a/link
+busybox cp -RHL a b
+test ! -L b/link
+#sh </dev/tty >/dev/tty 2>&1