Merge pull request #1707 from geert-hendrickx-be/3.1dev

`hostname` is not defined by POSIX, use portable `uname -n` instead.
This commit is contained in:
Dirk Wetter 2020-08-26 18:59:43 +02:00 committed by GitHub
commit 09fb279510
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ declare -r PROG_NAME="$(basename "$0")"
declare -r RUN_DIR="$(dirname "$0")"
declare -r SYSTEM="$(uname -s)"
declare -r SYSTEMREV="$(uname -r)"
HNAME="$(hostname)"
HNAME="$(uname -n)"
HNAME="${HNAME%%.*}"
declare CMDLINE
CMDLINE_PARSED="" # This makes sure we don't let early fatal() write into files when files aren't created yet