[openssh-commits] [openssh] 04/04: upstream: Use awk instead of cut to help -portable.
git+noreply at mindrot.org
git+noreply at mindrot.org
Tue Jun 16 21:23:30 AEST 2026
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit b9d134a0b16a1810e9bbfac5bc687f5dbc75e7fa
Author: dtucker at openbsd.org <dtucker at openbsd.org>
AuthorDate: Tue Jun 16 10:58:42 2026 +0000
upstream: Use awk instead of cut to help -portable.
Some platforms have size limits on cut.
OpenBSD-Regress-ID: fe871e8ed43fd92efb0df76f61c5cc9c5429ea82
---
regress/sshsig.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/regress/sshsig.sh b/regress/sshsig.sh
index fe0958ad2..695070acb 100644
--- a/regress/sshsig.sh
+++ b/regress/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"
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list