[PATCH] Portability: use `uname -n` instead of `hostname`

Geert Hendrickx geert at hendrickx.be
Sun Oct 11 08:07:31 UTC 2020


PS: This patch is for the nginx-test repo.


	Geert


On Sun, Oct 11, 2020 at 10:04:06 +0200, Geert Hendrickx wrote:
> # HG changeset patch
> # User Geert Hendrickx <geert at hendrickx.be>
> # Date 1602402793 -7200
> #      Sun Oct 11 09:53:13 2020 +0200
> # Node ID 53f3eae1dc9a4f901f3d4da67daa0181d13dc222
> # Parent  4e06441193417456bf24b213d15da12a90322f4c
> Portability: use `uname -n` instead of `hostname`.
> 
> As `hostname` is not defined by POSIX and not available
> by default on some modern Linux distro's (Arch, Fedora),
> making some tests fail.  Using `uname -n` instead fixes
> this in a portable way.


-- 
geert.hendrickx.be :: geert at hendrickx.be :: PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!


More information about the nginx-devel mailing list