source: MondoRescue/branches/2.2.9/mindi-busybox/testsuite/cp/cp-does-not-copy-unreadable-file@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
File size: 179 bytes
Line 
1touch 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
Note: See TracBrowser for help on using the repository browser.