]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Use non-deprecated chown syntax
authorChris Hofstaedtler <zeha@debian.org>
Tue, 12 Apr 2022 15:41:05 +0000 (15:41 +0000)
committerMichiel Beijen <mb@x14.nl>
Fri, 12 May 2023 17:42:45 +0000 (19:42 +0200)
Closes: #1007139
tests/functions.sh

index e47b78ac9da7329ac0a922701ce0a4e2a4034bb1..bcc2e565b68b2245841125c0622496a21ae6e9de 100644 (file)
@@ -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