Welcome! Log In Create A New Profile

Advanced

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

Geert Hendrickx
October 11, 2020 04:08AM
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@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@hendrickx.be :: PGP: 0xC4BB9E9F
This e-mail was composed using 100% recycled spam messages!
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Geert Hendrickx 528 October 11, 2020 04:04AM

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

Geert Hendrickx 179 October 11, 2020 04:08AM

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

Sergey Kandaurov 167 October 12, 2020 01:16PM

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

Geert Hendrickx 194 October 13, 2020 03:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 311
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready