aboutsummaryrefslogtreecommitdiff
blob: bfa7416f6efcc16b877f237267e542ac9a2f4054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# make sure symlinks with lchown() work properly

addwrite $PWD

rm -rf deny link
(
set -e
mkdir deny
touch deny/file
ln -s deny/file link
) || exit 1

adddeny $PWD/deny

# this should not fail
exec lchown-0 0 link ${SB_UID} ${SB_GID}