diff options
author | phk <phk@FreeBSD.org> | 2003-10-30 12:40:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-10-30 12:40:54 +0000 |
commit | bb5c5b4c57f686cbf367209f05c977153e3d1cbe (patch) | |
tree | 86b89d1ed218d745b0b8c85f68491bcb80ba4998 | |
parent | f6d56a96f70efbad25608a00a293edc15d337e5d (diff) | |
download | FreeBSD-src-bb5c5b4c57f686cbf367209f05c977153e3d1cbe.zip FreeBSD-src-bb5c5b4c57f686cbf367209f05c977153e3d1cbe.tar.gz |
Update test-case to also fail on filenames containing '#'
-rw-r--r-- | usr.sbin/mtree/test/test00.sh | 17 |
1 files changed, 17 insertions, 0 deletions
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 |