cp: fix "cp -RL" to create regular files even if src is a symlink
[oweals/busybox.git] / testsuite / cp / cp-RHL-does_not_preserve-links
diff --git a/testsuite/cp/cp-RHL-does_not_preserve-links b/testsuite/cp/cp-RHL-does_not_preserve-links
new file mode 100644 (file)
index 0000000..eed6c3e
--- /dev/null
@@ -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