[openssh-commits] [openssh] 02/02: upstream: Some platforms don't have "hostname -s", so use cut to trim
git+noreply at mindrot.org
git+noreply at mindrot.org
Sun Apr 5 08:41:03 AEST 2020
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit db0fdd48335b5b01114f78c1a73a195235910f81
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Sat Apr 4 22:14:26 2020 +0000
upstream: Some platforms don't have "hostname -s", so use cut to trim
short hostname instead.
OpenBSD-Regress-ID: ebcf36a6fdf287c9336b0d4f6fc9f793c05307a7
---
regress/percent.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/regress/percent.sh b/regress/percent.sh
index ef37ab22..a09f1612 100644
--- a/regress/percent.sh
+++ b/regress/percent.sh
@@ -1,11 +1,11 @@
-# $OpenBSD: percent.sh,v 1.4 2020/04/03 07:53:10 dtucker Exp $
+# $OpenBSD: percent.sh,v 1.5 2020/04/04 22:14:26 dtucker Exp $
# Placed in the Public Domain.
tid="percent expansions"
USER=`id -u -n`
USERID=`id -u`
-HOST=`hostname -s`
+HOST=`hostname | cut -f1 -d.`
HOSTNAME=`hostname`
# Localcommand is evaluated after connection because %T is not available
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list