summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2016-05-25 12:31:20 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-07-19 12:22:40 -0400
commit0dd60e7bb37385fad3eeccab1fa51d335517343e (patch)
tree0721a83aa53fe0163e252042abaab5a2a5ae1c6c
parent45c5668be215f1aef80c0eb3ae9cc305fb7dc071 (diff)
FSDG: systemd-resolved: Fallback hostname to "gnu-linux" instead of "linux"
-rw-r--r--src/resolve/resolved-manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c
index 2ee027791a..daa8292e8b 100644
--- a/src/resolve/resolved-manager.c
+++ b/src/resolve/resolved-manager.c
@@ -408,10 +408,10 @@ static int determine_hostname(char **full_hostname, char **llmnr_hostname, char
static const char *fallback_hostname(void) {
/* Determine the fall back hostname. For exposing this system to the outside world, we cannot have it to be
- * "localhost" even if that's the compiled in hostname. In this case, let's revert to "linux" instead. */
+ * "localhost" even if that's the compiled in hostname. In this case, let's revert to "gnu-linux" instead. */
if (is_localhost(FALLBACK_HOSTNAME))
- return "linux";
+ return "gnu-linux";
return FALLBACK_HOSTNAME;
}