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

123456789101112131415161718192021222324252627282930313233343536
  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. @@ -388,7 +388,7 @@
  14. static char* fallback_hostname(void) {
  15. /* Determine the fall back hostname. For exposing this system to the outside world, we cannot have it
  16. - * to be "localhost" even if that's the default hostname. In this case, let's revert to "linux"
  17. + * to be "localhost" even if that's the default hostname. In this case, let's revert to "gnu-linux"
  18. * instead. */
  19. _cleanup_free_ char *n = get_default_hostname();
  20. @@ -396,7 +396,7 @@
  21. return NULL;
  22. if (is_localhost(n))
  23. - return strdup("linux");
  24. + return strdup("gnu-linux");
  25. return TAKE_PTR(n);
  26. }
  27. --
  28. 2.18.0