summaryrefslogtreecommitdiff
path: root/libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2021-04-02 19:47:40 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2021-04-02 19:47:40 -0500
commit16046e999119dc1f5b5f787e833836617a6fa189 (patch)
tree1547f26e08d39ea0e066128ead9dad56b78b8654 /libre/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch
parentacaf58c5e47b673a78298447efab31128b0652ae (diff)
downloadabslibre-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.patch23
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