#!/bin/sh

. ./test-functions

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