hostname is not defined by POSIX, use portable uname -n instead.

This commit is contained in:
Geert Hendrickx 2021-05-13 13:58:07 +02:00
parent 6829996197
commit 388f3aea19
No known key found for this signature in database
GPG Key ID: CD718C1F95AD44EA

View File

@ -138,7 +138,7 @@ ADDITIONAL_CA_FILES="${ADDITIONAL_CA_FILES:-""}" # single file with a CA in PEM
CIPHERS_BY_STRENGTH_FILE=""
TLS_DATA_FILE="" # mandatory file for socket-based handshakes
OPENSSL_LOCATION=""
HNAME="$(hostname)"
HNAME="$(uname -n)"
HNAME="${HNAME%%.*}"
declare CMDLINE