[openssh-commits] [openssh] 01/03: upstream: Avoid %'s in commands (not used in OpenBSD, but used in

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Jan 13 16:01:51 AEDT 2022


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 7a75f748cb2dd2f771bf70ea72698aa027996ab1
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Thu Jan 13 04:22:10 2022 +0000

    upstream: Avoid %'s in commands (not used in OpenBSD, but used in
    
    -portable's Valgrind test) being interpretted as printf format strings.
    
    OpenBSD-Regress-ID: dc8655db27ac4acd2c386c4681bf42a10d80b043
---
 regress/agent-restrict.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/regress/agent-restrict.sh b/regress/agent-restrict.sh
index bdd24ffb..cd8486e1 100644
--- a/regress/agent-restrict.sh
+++ b/regress/agent-restrict.sh
@@ -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
 }

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list