summaryrefslogtreecommitdiff
path: root/tests/rm/fail-2eperm
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-16 08:31:04 +0000
committerJim Meyering <jim@meyering.net>2003-07-16 08:31:04 +0000
commitf7ed03fa5070249ae0a3dc64ac11433ee0c12df7 (patch)
tree4a45e4baffbe9d0360868fa332f6b06fa2018192 /tests/rm/fail-2eperm
parenta0306325d29f753b690d50661e9a0b990746ac9b (diff)
downloadcoreutils-f7ed03fa5070249ae0a3dc64ac11433ee0c12df7.tar.xz
Remove setuidgid-related code. Moved to ../priv-check.
Diffstat (limited to 'tests/rm/fail-2eperm')
-rwxr-xr-xtests/rm/fail-2eperm16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/rm/fail-2eperm b/tests/rm/fail-2eperm
index 7a675d3c7..8f67faebd 100755
--- a/tests/rm/fail-2eperm
+++ b/tests/rm/fail-2eperm
@@ -19,22 +19,6 @@ framework_failure=0
mkdir -p $tmp || framework_failure=1
cd $tmp || framework_failure=1
-: ${NON_ROOT_USERNAME=nobody}
-
-# Ensure that the supplied username is valid and with UID != 0.
-setuidgid $NON_ROOT_USERNAME id -u > id || \
- {
- echo "$0: Skipping this test. To enable it, set the envvar" 1>&2
- echo "$0: NON_ROOT_USERNAME to a non-root user name." 1>&2
- (exit 77); exit 77
- }
-test `cat id` = 0 && \
- {
- echo "$0: The specified NON_ROOT_USERNAME ($NON_ROOT_USERNAME)" 1>&2
- echo "$0: is invalid because its UID is 0." 1>&2
- (exit 1); exit 1
- }
-
# The containing directory must be owned by the user who eventually runs rm.
chown $NON_ROOT_USERNAME .