3 # Copyright (c) 2003 Poul-Henning Kamp
6 # Please see src/share/examples/etc/bsd-style-copyright.
16 mkdir -p ${TMP} ${TMP}/mr ${TMP}/mt
19 ln -s "xx this=is=wrong" ${TMP}/mr/foo
20 mtree -c -p ${TMP}/mr > ${TMP}/_
22 if mtree -U -r -p ${TMP}/mt < ${TMP}/_ > /dev/null 2>&1 ; then
25 echo "ERROR Mtree failed on symlink with space char" 1>&2
30 x=x`(cd ${TMP}/mr ; ls -l foo 2>&1) || true`
31 y=x`(cd ${TMP}/mt ; ls -l foo 2>&1) || true`
33 if [ "$x" != "$y" ] ; then
34 echo "ERROR Recreation of spaced symlink failed" 1>&2