|
Last change
on this file since 2837 was 2725, checked in by Bruno Cornec, 15 years ago |
- Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
|
|
File size:
179 bytes
|
| Rev | Line | |
|---|
| [821] | 1 | touch foo
|
|---|
| 2 | chmod a-r foo
|
|---|
| 3 | set +e
|
|---|
| [2725] | 4 | if test `id -u` = 0; then
|
|---|
| 5 | # run as user with nonzero uid
|
|---|
| 6 | setuidgid 1 busybox cp foo bar
|
|---|
| 7 | else
|
|---|
| 8 | busybox cp foo bar
|
|---|
| 9 | fi
|
|---|
| [821] | 10 | set -e
|
|---|
| 11 | test ! -f bar
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.