diff -Naur strongswan-4.4.0-orig/testing/do-tests.in strongswan-4.4.0/testing/do-tests.in --- strongswan-4.4.0-orig/testing/do-tests.in 2010-04-05 12:00:30.000000000 +0000 +++ strongswan-4.4.0/testing/do-tests.in 2010-05-10 19:37:07.124106562 +0000 @@ -340,6 +340,7 @@ # run tcpdump in the background # + tmp=${TMP:-/tmp} if [ "$TCPDUMPHOSTS" != "" ] then echo -e "TCPDUMP\n" >> $CONSOLE_LOG 2>&1 @@ -348,7 +349,7 @@ do host=`echo $host_iface | awk -F ":" '{print $1}'` iface=`echo $host_iface | awk -F ":" '{if ($2 != "") { print $2 } else { printf("eth0") }}'` - tcpdump_cmd="tcpdump -i $iface not port ssh and not port domain > /tmp/tcpdump.log 2>&1 &" + tcpdump_cmd="tcpdump -i $iface not port ssh and not port domain > $tmp/tcpdump.log 2>&1 &" echo "${host}# $tcpdump_cmd" >> $CONSOLE_LOG ssh root@`eval echo \\\$ipv4_$host '$tcpdump_cmd'` eval TDUP_${host}="true" @@ -399,13 +400,15 @@ command=$2 pattern=$3 hit=$4 + tmp=ENVIRON["TMP"] + if (tmp == "") { tmp = "/tmp"; } if (command != "") { if (command == "tcpdump") { printf("if [ \044TDUP_%s == \"true\" ]; then stop_tcpdump %s; fi; \n", host, host) - printf("echo \"%s# cat /tmp/tcpdump.log | grep \047%s\047 [%s]\"; ", host, pattern, hit) - printf("ssh root@\044ipv4_%s cat /tmp/tcpdump.log | grep \"%s\"; ", host, pattern) + printf("echo \"%s# cat %s/tcpdump.log | grep \047%s\047 [%s]\"; ", host, tmp, pattern, hit) + printf("ssh root@\044ipv4_%s cat %s/tcpdump.log | grep \"%s\"; ", host, tmp, pattern) } else {