]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: Avoid %'s in commands (not used in OpenBSD, but used in
authordtucker@openbsd.org <dtucker@openbsd.org>
Thu, 13 Jan 2022 04:22:10 +0000 (04:22 +0000)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 13 Jan 2022 04:49:38 +0000 (15:49 +1100)
-portable's Valgrind test) being interpretted as printf format strings.

OpenBSD-Regress-ID: dc8655db27ac4acd2c386c4681bf42a10d80b043

regress/agent-restrict.sh

index bdd24ffb08ef6d1d953f595c7990b27accf2192d..cd8486e18d33c2cb464ee9bae6d814c471ed59a9 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: agent-restrict.sh,v 1.3 2022/01/12 07:18:37 dtucker Exp $
+#      $OpenBSD: agent-restrict.sh,v 1.4 2022/01/13 04:22:10 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="agent restrictions"
@@ -86,7 +86,7 @@ reset_keys() {
        trace "reset keys"
        >$OBJ/authorized_keys_$USER
        for h in e d c b a; do
-               (printf "restrict,agent-forwarding,command=\"$_command\" ";
+               (printf "%s" "restrict,agent-forwarding,command=\"$_command\" ";
                 cat $OBJ/user_$h.pub) >> $OBJ/authorized_keys_$USER
        done
 }