s3:test: fix the smbclient_s3 test on older systems
authorMichael Adam <obnox@samba.org>
Fri, 24 Jun 2011 14:38:07 +0000 (16:38 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 24 Jun 2011 21:58:24 +0000 (23:58 +0200)
mktemp requires precisely six Xs at the end of the template name

source3/script/tests/test_smbclient_s3.sh

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