From 50d94f9ab6a96ae41b50a32eb792b56882679524 Mon Sep 17 00:00:00 2001 From: dtucker Date: Tue, 16 Jun 2026 10:58:42 +0000 Subject: [PATCH] Use awk instead of cut to help -portable. Some platforms have size limits on cut. --- regress/usr.bin/ssh/sshsig.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regress/usr.bin/ssh/sshsig.sh b/regress/usr.bin/ssh/sshsig.sh index fe0958ad27b..695070acbac 100644 --- a/regress/usr.bin/ssh/sshsig.sh +++ b/regress/usr.bin/ssh/sshsig.sh @@ -1,4 +1,4 @@ -# $OpenBSD: sshsig.sh,v 1.16 2025/09/11 07:23:32 djm Exp $ +# $OpenBSD: sshsig.sh,v 1.17 2026/06/16 10:58:42 dtucker Exp $ # Placed in the Public Domain. tid="sshsig" @@ -86,10 +86,10 @@ for t in $SIGNKEYS; do cat $pubkey) > $OBJ/allowed_signers ${SSHKEYGEN} -q -Y verify -s $sigfile -n $sig_namespace \ -I $sig_principal -f $OBJ/allowed_signers \ - -O print-pubkey \ - < $DATA | cut -d' ' -f1-2 > ${OBJ}/${keybase}-fromsig.pub || \ + -O print-pubkey < $DATA | \ + awk '{print $1" "$2}' >${OBJ}/${keybase}-fromsig.pub || \ fail "failed signature for $t key w/ print-pubkey" - cut -d' ' -f1-2 ${OBJ}/${keybase}.pub > ${OBJ}/${keybase}-strip.pub + awk '{print $1" "$2}' ${OBJ}/${keybase}.pub >${OBJ}/${keybase}-strip.pub diff -r ${OBJ}/${keybase}-strip.pub ${OBJ}/${keybase}-fromsig.pub || \ fail "print-pubkey differs from signature key"