aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2026-01-18 01:37:53 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2026-01-18 01:37:53 +0100
commit26e9afe22d4b486358f7a66dec5e59a0018289b0 (patch)
tree0e6f283b1ef2fb3903d0ab62b699da3f1b5aa09b /coreutils
parent3b785b18d28cc3b4e3575d2e615359f06f7fe29f (diff)
downloadbusybox-w32-26e9afe22d4b486358f7a66dec5e59a0018289b0.tar.gz
busybox-w32-26e9afe22d4b486358f7a66dec5e59a0018289b0.tar.bz2
busybox-w32-26e9afe22d4b486358f7a66dec5e59a0018289b0.zip
coreutils: fixes for coreutils/id_test.sh script
Patch from Tito Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rwxr-xr-xcoreutils/id_test.sh22
1 files changed, 11 insertions, 11 deletions
diff --git a/coreutils/id_test.sh b/coreutils/id_test.sh
index 0d65f2ae3..43597c2a4 100755
--- a/coreutils/id_test.sh
+++ b/coreutils/id_test.sh
@@ -50,11 +50,11 @@ if test $FLAG_USER_EXISTS = "yes"; then
50 exit 1 50 exit 1
51fi 51fi
52 52
53adduser -s /bin/true -g "" -H -D "$TEST_USER" || exit 1 53$BUSYBOX adduser -s /bin/true -g "" -H -D "$TEST_USER" || exit 1
54 54
55chown $TEST_USER.$TEST_USER $BUSYBOX 55chown $TEST_USER:$TEST_USER $BUSYBOX
56chmod u+s $BUSYBOX 2>&1 /dev/null 56chmod u+s $BUSYBOX 2>&1 /dev/null
57chown $TEST_USER.$TEST_USER $ID 57chown $TEST_USER:$TEST_USER $ID
58chmod u+s $ID 2>&1 /dev/null 58chmod u+s $ID 2>&1 /dev/null
59 59
60echo "test 3 setuid, existing user: id [options] no username" 60echo "test 3 setuid, existing user: id [options] no username"
@@ -90,9 +90,9 @@ do
90 done 90 done
91done 91done
92 92
93chown $TEST_USER.$TEST_USER $BUSYBOX 93chown $TEST_USER:$TEST_USER $BUSYBOX
94chmod g+s $BUSYBOX 2>&1 /dev/null 94chmod g+s $BUSYBOX 2>&1 /dev/null
95chown $TEST_USER.$TEST_USER $ID 95chown $TEST_USER:$TEST_USER $ID
96chmod g+s $ID 2>&1 /dev/null 96chmod g+s $ID 2>&1 /dev/null
97 97
98echo "test 5 setgid, existing user: id [options] no username" 98echo "test 5 setgid, existing user: id [options] no username"
@@ -128,9 +128,9 @@ do
128 done 128 done
129done 129done
130 130
131chown $TEST_USER.$TEST_USER $BUSYBOX 131chown $TEST_USER:$TEST_USER $BUSYBOX
132chmod u+s,g+s $BUSYBOX 2>&1 /dev/null 132chmod u+s,g+s $BUSYBOX 2>&1 /dev/null
133chown $TEST_USER.$TEST_USER $ID 133chown $TEST_USER:$TEST_USER $ID
134chmod u+s,g+s $ID 2>&1 /dev/null 134chmod u+s,g+s $ID 2>&1 /dev/null
135 135
136echo "test 7 setuid, setgid, existing user: id [options] no username" 136echo "test 7 setuid, setgid, existing user: id [options] no username"
@@ -200,8 +200,8 @@ do
200 done 200 done
201done 201done
202 202
203chown .root $BUSYBOX 2>&1 /dev/null 203chown :root $BUSYBOX 2>&1 /dev/null
204chown .root $ID 2>&1 /dev/null 204chown :root $ID 2>&1 /dev/null
205chmod g+s $BUSYBOX 2>&1 /dev/null 205chmod g+s $BUSYBOX 2>&1 /dev/null
206chmod g+s $ID 2>&1 /dev/null 206chmod g+s $ID 2>&1 /dev/null
207 207
@@ -238,7 +238,7 @@ do
238 done 238 done
239done 239done
240 240
241chown root.root $BUSYBOX 2>&1 /dev/null 241chown root:root $BUSYBOX 2>&1 /dev/null
242chown root.root $ID 2>&1 /dev/null 242chown root:root $ID 2>&1 /dev/null
243rm -f $ID 243rm -f $ID
244rm -f foo bar 244rm -f foo bar