0005-FSDG-systemd-resolved-Fallback-hostname-to-gnu-linux.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From 50b001e3d034825142c03e612af9d4a5a307472f Mon Sep 17 00:00:00 2001
  2. From: Luke Shumaker <lukeshu@parabola.nu>
  3. Date: Wed, 25 May 2016 12:31:20 -0400
  4. Subject: [PATCH 5/7] FSDG: systemd-resolved: Fallback hostname to "gnu-linux"
  5. instead of "linux"
  6. ---
  7. src/resolve/resolved-manager.c | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/src/resolve/resolved-manager.c b/src/resolve/resolved-manager.c
  10. index 01372fc66b..9155ce5c2e 100644
  11. --- a/src/resolve/resolved-manager.c
  12. +++ b/src/resolve/resolved-manager.c
  13. @@ -387,10 +387,10 @@ static int determine_hostname(char **full_hostname, char **llmnr_hostname, char
  14. static const char *fallback_hostname(void) {
  15. /* Determine the fall back hostname. For exposing this system to the outside world, we cannot have it to be
  16. - * "localhost" even if that's the compiled in hostname. In this case, let's revert to "linux" instead. */
  17. + * "localhost" even if that's the compiled in hostname. In this case, let's revert to "gnu-linux" instead. */
  18. if (is_localhost(FALLBACK_HOSTNAME))
  19. - return "linux";
  20. + return "gnu-linux";
  21. return FALLBACK_HOSTNAME;
  22. }
  23. --
  24. 2.18.0