diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2019-01-15 23:38:03 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2019-01-15 23:38:03 -0500 |
commit | b1287b34794130a1ff32f61a1ba30b9a830466c1 (patch) | |
tree | 61fea481960a33e8d912cb4a127aec62d0b252df /libre-testing/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch | |
parent | 4efabdd4fcc19c30b09f49d1ec4d69fb110e8e29 (diff) | |
download | abslibre-b1287b34794130a1ff32f61a1ba30b9a830466c1.tar.gz abslibre-b1287b34794130a1ff32f61a1ba30b9a830466c1.tar.bz2 abslibre-b1287b34794130a1ff32f61a1ba30b9a830466c1.zip |
copy systemd to [libre-testing]
Diffstat (limited to 'libre-testing/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch')
-rw-r--r-- | libre-testing/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libre-testing/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch b/libre-testing/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch new file mode 100644 index 000000000..5e170ce34 --- /dev/null +++ b/libre-testing/systemd/0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch @@ -0,0 +1,30 @@ +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 +@@ -387,10 +387,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; + } +-- +2.18.0 + |