summaryrefslogtreecommitdiff
path: root/libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch
blob: 2c38cc7e394f1d1c7f6bdb8383210281a17658b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From 50b001e3d034825142c03e612af9d4a5a307472f Mon Sep 17 00:00:00 2001
From: Luke Shumaker <lukeshu@parabola.nu>
Date: Wed, 25 May 2016 12:31:20 -0400
Subject: [PATCH 5/7] FSDG: systemd-resolved: Fallback hostname to "gnu-linux"
 instead of "linux"

---
 src/resolve/resolved-manager.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c
index 01372fc66b..9155ce5c2e 100644
--- a/src/resolve/resolved-manager.c
+++ b/src/resolve/resolved-manager.c
@@ -388,7 +388,7 @@
 static 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 default hostname. In this case, let's revert to "linux"
+         * to be "localhost" even if that's the default hostname. In this case, let's revert to "gnu-linux"
          * instead. */
 
         _cleanup_free_ char *n = get_default_hostname();
@@ -396,7 +396,7 @@
                 return NULL;
 
         if (is_localhost(n))
-                return strdup("linux");
+                return strdup("gnu-linux");
 
         return TAKE_PTR(n);
 }
-- 
2.18.0