blob: e17e8e66dd72f70b2c48e11fc4e46a629cca5a94 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001touch foo
2chmod a-r foo
3set +e
4if test `id -u` = 0; then
5 # run as user with nonzero uid
6 setuidgid 1 busybox cp foo bar
7else
8 busybox cp foo bar
9fi
10set -e
11test ! -f bar