diff options
Diffstat (limited to 'libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch')
-rw-r--r-- | libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch b/libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch index 5e170ce34..2c38cc7e3 100644 --- a/libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch +++ b/libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch @@ -12,18 +12,23 @@ 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 -@@ -387,10 +387,10 @@ static int determine_hostname(char **full_hostname, char **llmnr_hostname, char - static const char *fallback_hostname(void) { +@@ -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 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. */ + /* 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. */ - if (is_localhost(FALLBACK_HOSTNAME)) -- return "linux"; -+ return "gnu-linux"; + _cleanup_free_ char *n = get_default_hostname(); +@@ -396,7 +396,7 @@ + return NULL; - return FALLBACK_HOSTNAME; + if (is_localhost(n)) +- return strdup("linux"); ++ return strdup("gnu-linux"); + + return TAKE_PTR(n); } -- 2.18.0 |