aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2023-05-15 12:18:17 +0200
committerKarel Zak <kzak@redhat.com>2023-05-15 12:18:17 +0200
commite27b9ed2c0ab93779938f2a770aeab8033489ab0 (patch)
treef72b7ba43737f9b9c879af7dae8d36283ccdbb84
parent31d49139f1eee3648844a658f194c529a976d14f (diff)
parent10f3107199b6e9a3d70cff6280affd2f272d65f4 (diff)
downloadutil-linux-e27b9ed2c0ab93779938f2a770aeab8033489ab0.tar.gz
Merge branch 'chown' of https://github.com/mbeijen/util-linux
* 'chown' of https://github.com/mbeijen/util-linux: Use non-deprecated chown syntax
-rw-r--r--tests/functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index e47b78ac9d..bcc2e565b6 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -464,7 +464,7 @@ function ts_init_suid {
TS_SUID_USER[$ct]=$(stat --printf="%U" $PROG)
TS_SUID_GROUP[$ct]=$(stat --printf="%G" $PROG)
- chown root.root $PROG &> /dev/null
+ chown root:root $PROG &> /dev/null
chmod u+s $PROG &> /dev/null
}
@@ -653,7 +653,7 @@ function ts_cleanup_on_exit {
for idx in $(seq 0 $((${#TS_SUID_PROGS[*]} - 1))); do
PROG=${TS_SUID_PROGS[$idx]}
chmod a-s $PROG &> /dev/null
- chown ${TS_SUID_USER[$idx]}.${TS_SUID_GROUP[$idx]} $PROG &> /dev/null
+ chown ${TS_SUID_USER[$idx]}:${TS_SUID_GROUP[$idx]} $PROG &> /dev/null
done
for dev in "${TS_LOOP_DEVS[@]}"; do