[openssh-commits] [openssh] 01/02: upstream: Quote grep and log message better.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Mar 2 19:32:55 AEDT 2023


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

dtucker pushed a commit to branch master
in repository openssh.

commit 860201201d4ae655702807966901682cff30a171
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date:   Thu Mar 2 08:14:52 2023 +0000

    upstream: Quote grep and log message better.
    
    OpenBSD-Regress-ID: 3823d9063127169736aa274b1784cb28e15b64d4
---
 regress/dhgex.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/regress/dhgex.sh b/regress/dhgex.sh
index 6dd4cfe3..30064f30 100644
--- a/regress/dhgex.sh
+++ b/regress/dhgex.sh
@@ -1,4 +1,4 @@
-#	$OpenBSD: dhgex.sh,v 1.7 2020/12/21 22:48:41 dtucker Exp $
+#	$OpenBSD: dhgex.sh,v 1.8 2023/03/02 08:14:52 dtucker Exp $
 #	Placed in the Public Domain.
 
 tid="dhgex"
@@ -31,8 +31,8 @@ ssh_test_dhgex()
 	# check what we request
 	grep "SSH2_MSG_KEX_DH_GEX_REQUEST($groupsz) sent" ${LOG} >/dev/null
 	if [ $? != 0 ]; then
-		got=`egrep "SSH2_MSG_KEX_DH_GEX_REQUEST(.*) sent" ${LOG}`
-		fail "$tid unexpected GEX sizes, expected $groupsz, got $got"
+		got="`egrep 'SSH2_MSG_KEX_DH_GEX_REQUEST(.*) sent' ${LOG}`"
+		fail "$tid unexpected GEX sizes, expected $groupsz, got '$got'"
 	fi
 	# check what we got.
 	gotbits="`awk 'BEGIN{FS="/"}/bits set:/{print $2}' ${LOG} |

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


More information about the openssh-commits mailing list