s3:test: fix smbclient test on older systems (usage of mktemp)
authorMichael Adam <obnox@samba.org>
Mon, 28 Feb 2011 16:06:01 +0000 (17:06 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 28 Feb 2011 17:12:46 +0000 (18:12 +0100)
--tmpdir is not a valid option to mktemp on older systems

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Feb 28 18:12:46 CET 2011 on sn-devel-104

source3/script/tests/test_smbclient_s3.sh

index 8ae8ef2514cce877d5aed015796d603b1fa7fd8a..857400e9b07b4ea7956188e8e6a6a8f2aecbfc0b 100755 (executable)
@@ -399,7 +399,7 @@ for OLDDIR in $(find ${PREFIX} -type d -name "${LOGDIR_PREFIX}_*") ;  do
        rm -rf ${OLDDIR}
 done
 
-LOGDIR=$(mktemp -d --tmpdir=$PREFIX ${LOGDIR_PREFIX}_XXXX)
+LOGDIR=$(mktemp -d ${PREFIX}/${LOGDIR_PREFIX}_XXXX)
 
 
 testit "smbclient -L $SERVER_IP" $SMBCLIENT -L $SERVER_IP -N -p 139 || failed=`expr $failed + 1`