]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sun, 22 Jun 1997 03:32:37 +0000 (03:32 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 22 Jun 1997 03:32:37 +0000 (03:32 +0000)
tests/cp/no-deref-slink [new file with mode: 0755]

diff --git a/tests/cp/no-deref-slink b/tests/cp/no-deref-slink
new file mode 100755 (executable)
index 0000000..8b709ed
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+# This test requires ln -s.
+# cp from 3.16 fails this test
+rm -rf a b
+mkdir a b
+echo foo > a/foo
+cd b
+ln -s ../a/foo .
+cd ..
+./cp -d a/foo b
+test "`cat a/foo`" = foo && fail=0 || fail=1
+exit $fail