#!/bin/sh

. ./test-functions

echo -n "Local TCP socket taints test:	"
( # Sub-shell so as not to taint the test process.
	port=4000
	_wget=$(copy wget)
	
	nc -l4p $port | test_evil_bit $_wget --no-check-certificate -i - --quiet -O /dev/null &
	sleep 1
	cat confidential | nc localhost $port
	wait $!
	rm -f $_wget
)
