Skip to content

Commit 931d009

Browse files
authored
Merge pull request #1887 from ghen2/3.0-uname
`hostname` is not defined by POSIX, use portable `uname -n` instead.
2 parents 6829996 + 388f3ae commit 931d009

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

testssl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ADDITIONAL_CA_FILES="${ADDITIONAL_CA_FILES:-""}" # single file with a CA in PEM
138138
CIPHERS_BY_STRENGTH_FILE=""
139139
TLS_DATA_FILE="" # mandatory file for socket-based handshakes
140140
OPENSSL_LOCATION=""
141-
HNAME="$(hostname)"
141+
HNAME="$(uname -n)"
142142
HNAME="${HNAME%%.*}"
143143

144144
declare CMDLINE

0 commit comments

Comments
 (0)