aboutsummaryrefslogtreecommitdiff
path: root/testsuite/cp
diff options
context:
space:
mode:
authorGravatar Matt Kraai <kraai@debian.org>2001-12-11 16:43:48 +0000
committerGravatar Matt Kraai <kraai@debian.org>2001-12-11 16:43:48 +0000
commit14b7c5d12b9a492d148b744cf8300f47b53aafd0 (patch)
treea526d078b760f343038f2f67eda043e3e9198613 /testsuite/cp
parent741f40b58edf3644c6bc8e6863ee9ad681b21562 (diff)
downloadbusybox-14b7c5d12b9a492d148b744cf8300f47b53aafd0.tar.gz
busybox-14b7c5d12b9a492d148b744cf8300f47b53aafd0.tar.bz2
Open the source before creating the destination.
Diffstat (limited to 'testsuite/cp')
-rw-r--r--testsuite/cp/cp-does-not-copy-unreadable-file4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/cp/cp-does-not-copy-unreadable-file b/testsuite/cp/cp-does-not-copy-unreadable-file
new file mode 100644
index 000000000..68c576727
--- /dev/null
+++ b/testsuite/cp/cp-does-not-copy-unreadable-file
@@ -0,0 +1,4 @@
+touch foo
+chmod a-r foo
+busybox cp foo bar
+test ! -f bar