Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
3dc4a3e4dce20988aa7691b4409d95ad9c32c923
/
.
/
testsuite
/
cp
/
cp-does-not-copy-unreadable-file
blob: e17e8e66dd72f70b2c48e11fc4e46a629cca5a94 [
file
] [
log
] [
blame
]
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