From: Jim Meyering Date: Sun, 22 Jun 1997 03:32:37 +0000 (+0000) Subject: . X-Git-Tag: SH-UTILS-1_16a~11 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=2f91f08a7980fcd4d9719a65463b001088a7b085;p=thirdparty%2Fcoreutils.git . --- diff --git a/tests/cp/no-deref-slink b/tests/cp/no-deref-slink new file mode 100755 index 0000000000..8b709ed381 --- /dev/null +++ b/tests/cp/no-deref-slink @@ -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