summaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
authorMatt Kraai2001-12-17 15:26:36 +0000
committerMatt Kraai2001-12-17 15:26:36 +0000
commitace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 (patch)
tree1dec04901febc0fd63ac5b92bc2cca4333689477 /testsuite/cp
parent46ea0e4696456061ad7ce799658f737c24f781a6 (diff)
downloadbusybox-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.zip
busybox-ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733.tar.gz
Make cp and mv optionally preserve hard links.
Diffstat (limited to 'testsuite/cp')
-rw-r--r--testsuite/cp/cp-preserves-hard-links6
1 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/cp/cp-preserves-hard-links b/testsuite/cp/cp-preserves-hard-links
new file mode 100644
index 0000000..c17f426
--- /dev/null
+++ b/testsuite/cp/cp-preserves-hard-links
@@ -0,0 +1,6 @@
+# UNSUPPORTED: CONFIG_FEATURE_PRESERVE_HARDLINKS
+touch foo
+ln foo bar
+mkdir baz
+busybox cp -d foo bar baz
+test baz/foo -ef baz/bar