From bb5c5b4c57f686cbf367209f05c977153e3d1cbe Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 30 Oct 2003 12:40:54 +0000 Subject: Update test-case to also fail on filenames containing '#' --- usr.sbin/mtree/test/test00.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'usr.sbin/mtree') diff --git a/usr.sbin/mtree/test/test00.sh b/usr.sbin/mtree/test/test00.sh index d9cc5c1..58d557c 100644 --- a/usr.sbin/mtree/test/test00.sh +++ b/usr.sbin/mtree/test/test00.sh @@ -46,6 +46,23 @@ if [ -d ${TMP}/mt/foo ] ; then fi rmdir ${TMP}/mr/\?oo +mkdir ${TMP}/mr/\# +mtree -c -p ${TMP}/mr > ${TMP}/_ +if mtree -U -r -p ${TMP}/mt < ${TMP}/_ > /dev/null 2>&1 ; then + true +else + echo "ERROR Mtree create fell for filename with '#' char" 1>&2 + rm -rf ${TMP} + exit 1 +fi + +if [ ! -d ${TMP}/mt/\# ] ; then + echo "ERROR Mtree update failed to create name with '#' char" 1>&2 + rm -rf ${TMP} + exit 1 +fi +rmdir ${TMP}/mr/\# + echo Passed test 1>&2 rm -rf ${TMP} exit 0 -- cgit v1.1