[openssh-commits] [openssh] 02/02: upstream: hostname is not specified by POSIX but uname -n is, so use
git+noreply at mindrot.org
git+noreply at mindrot.org
Fri Feb 5 17:38:33 AEDT 2021
This is an automated email from the git hooks/post-receive script.
dtucker pushed a commit to branch master
in repository openssh.
commit b446c214279de50ed8388e54897eb1be5281c894
Author: dtucker at openbsd.org <dtucker at openbsd.org>
Date: Fri Feb 5 06:01:58 2021 +0000
upstream: hostname is not specified by POSIX but uname -n is, so use
the latter for portability. Patch from Geert Hendrickx via github PR#208.
OpenBSD-Regress-ID: d6a79c7c4d141a0d05ade4a042eb57dddbce89f3
---
regress/percent.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/regress/percent.sh b/regress/percent.sh
index 28781117..e39f0696 100644
--- a/regress/percent.sh
+++ b/regress/percent.sh
@@ -1,4 +1,4 @@
-# $OpenBSD: percent.sh,v 1.9 2020/07/17 07:10:24 dtucker Exp $
+# $OpenBSD: percent.sh,v 1.10 2021/02/05 06:01:58 dtucker Exp $
# Placed in the Public Domain.
tid="percent expansions"
@@ -10,8 +10,8 @@ fi
USER=`id -u -n`
USERID=`id -u`
-HOST=`hostname | cut -f1 -d.`
-HOSTNAME=`hostname`
+HOST=`uname -n | cut -f1 -d.`
+HOSTNAME=`uname -n`
# Localcommand is evaluated after connection because %T is not available
# until then. Because of this we use a different method of exercising it,
--
To stop receiving notification emails like this one, please contact
djm at mindrot.org.
More information about the openssh-commits
mailing list