#!/bin/sh

. ./test-functions

socket=$(mktemp -u sft-XXXXXX)
_wget=$(copy wget)
echo -n "Unix-domain socket untainted test:	"
( # Sub-shell so as not to taint the test process.
	nc -Ul $socket | test_no_evil_bit $_wget --no-check-certificate -i - --quiet -O /dev/null &
	sleep 1
	echo "https://$SF_HOSTNAME" | nc -U $socket
	wait $!
)
rm -f $socket
rm -f $_wget
