#!/bin/sh

. ./test-functions

echo -n "DAC test:				"
tmp=$(mktemp sft-XXXXXX)
touch $tmp
su -c "dd if=/dev/zero of=$tmp bs=1c count=1" $SUDO_USER 2> /dev/null
if [ $? != 0 ]; then
	passmsg could not write to unowned file
else
	failmsg wrote to unowned file
fi
rm -f $tmp
