diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-27 22:06:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-27 22:06:24 +0000 |
commit | c0431ed455a601ddbfcd9f30d6397d4e9145cf54 (patch) | |
tree | 7eade59699338d065827751d37e72e45d2b4440b /testsuite | |
parent | 4809a9f78eecc7346e5d73b7f60ae6c51e057632 (diff) | |
download | busybox-w32-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.tar.gz busybox-w32-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.tar.bz2 busybox-w32-c0431ed455a601ddbfcd9f30d6397d4e9145cf54.zip |
cp: fix "cp -RL" to create regular files even if src is a symlink
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/cp/cp-RHL-does_not_preserve-links | 6 |
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 @@ | |||
1 | mkdir a | ||
2 | >a/file | ||
3 | ln -s file a/link | ||
4 | busybox cp -RHL a b | ||
5 | test ! -L b/link | ||
6 | #sh </dev/tty >/dev/tty 2>&1 | ||