diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2021-04-02 19:47:40 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2021-04-02 19:47:40 -0500 |
commit | 16046e999119dc1f5b5f787e833836617a6fa189 (patch) | |
tree | 1547f26e08d39ea0e066128ead9dad56b78b8654 /libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch | |
parent | acaf58c5e47b673a78298447efab31128b0652ae (diff) | |
download | abslibre-16046e999119dc1f5b5f787e833836617a6fa189.tar.gz abslibre-16046e999119dc1f5b5f787e833836617a6fa189.tar.bz2 abslibre-16046e999119dc1f5b5f787e833836617a6fa189.zip |
systemd-248-1.parabola1: updating version
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 |