#!/bin/sh

. ./test-functions

_new_dir=$(mktemp -d sft-XXXXXX)
_new_file=$(mktemp -u $_new_dir/sft-XXXXXX)

echo -n "Tainted rename test:		"
( # Sub-shell so as not to taint the test process.
	IGNORE=$(cat confidential)
	mv confidential $_new_file >/dev/null 2>&1 </dev/null
)

( # Sub-shell so as not to taint the test process.
	_ping=$(copy ping)
	IGNORE=$(ls $_new_dir)
	test_evil_bit $_ping -c 1 8.8.8.8
	rm -rf $_new_dir
	rm -f $_wget
)
