aboutsummaryrefslogtreecommitdiff
blob: da9bbbfa8a8296a1034e3d97b11d3d9d4c4e9128 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
# handle targets of dangling symlinks correctly #540828
[ "${at_xfail}" = "yes" ] && exit 77 # see script-0

# this should fail
mkdir subdir
ln -s subdir/target symlink

adddeny "${PWD}/subdir"

echo blah >symlink
# we should not be able to write through the symlink
if [ $? -eq 0 ] ; then
	exit 1
fi

test -s "${SANDBOX_LOG}"

exit $?