Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cp-does-not-copy-unreadable-file « cp « testsuite - git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e17e8e66dd72f70b2c48e11fc4e46a629cca5a94 (plain)
1
2
3
4
5
6
7
8
9
10
11
touch foo
chmod a-r foo
set +e
if test `id -u` = 0; then
    # run as user with nonzero uid
    setuidgid 1 busybox cp foo bar
else
    busybox cp foo bar
fi
set -e
test ! -f bar