s3:test: fix registry roundtrip 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 16:27:18 +0000 (17:27 +0100)
--tmpdir is not a valid option to mktemp on older systems

source3/script/tests/test_net_registry_roundtrip.sh

index 52ce192af48df536b7a66153077a0228f5e7bbd4..eba28a6223802c272f11227f19c071f72318ee29 100755 (executable)
@@ -59,7 +59,7 @@ LOGDIR_PREFIX="conf_roundtrip"
 
 conf_roundtrip()
 {
-    local DIR=$(mktemp -d --tmpdir=$PREFIX ${LOGDIR_PREFIX}_XXXX)
+    local DIR=$(mktemp -d ${PREFIX}/${LOGDIR_PREFIX}_XXXX)
     local LOG=$DIR/log
 
     echo conf_roundtrip $1 > $LOG