From 7b05f821b4fe7c42a17d765d38d181bcb4574461 Mon Sep 17 00:00:00 2001 From: dtucker Date: Wed, 12 Jan 2022 07:18:37 +0000 Subject: [PATCH] Use egrep when searching for an anchored string. --- regress/usr.bin/ssh/agent-restrict.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/regress/usr.bin/ssh/agent-restrict.sh b/regress/usr.bin/ssh/agent-restrict.sh index 0ddef3831d7..bdd24ffb08e 100644 --- a/regress/usr.bin/ssh/agent-restrict.sh +++ b/regress/usr.bin/ssh/agent-restrict.sh @@ -1,4 +1,4 @@ -# $OpenBSD: agent-restrict.sh,v 1.2 2022/01/04 07:20:33 djm Exp $ +# $OpenBSD: agent-restrict.sh,v 1.3 2022/01/12 07:18:37 dtucker Exp $ # Placed in the Public Domain. tid="agent restrictions" @@ -328,7 +328,7 @@ if test ! -z "\$me" ; then cat \$SSH_USER_AUTH fi echo AGENT -$SSHADD -L | grep ^ssh | cut -d" " -f-2 | sort +$SSHADD -L | egrep "^ssh" | cut -d" " -f-2 | sort if test -z "\$next" ; then touch $OBJ/done echo "FINISH" -- 2.20.1