X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/b15fa5257e0bb9ad36f49c525f72a873838f88dc..2df9cdc41c20e4e6afd99c0ae688c7c7baa4343b:/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff diff --git a/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff b/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff index f7a94b0..13a96b6 100644 --- a/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff +++ b/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff @@ -1,15 +1,18 @@ +If /etc/mailname is present, the hostname inside the file will be +used, rather than calling gethostbyname() on the actual hostname + --- a/init.c +++ b/init.c -@@ -46,6 +46,7 @@ +@@ -48,6 +48,7 @@ #include #include #include +#include #include #include - -@@ -2911,6 +2912,31 @@ static int mutt_execute_commands (LIST * - return 0; + #include +@@ -2952,6 +2953,31 @@ + srandom(seed); } +int getmailname(char *s, size_t l) @@ -40,7 +43,7 @@ void mutt_init (int skip_sys_rc, LIST *commands) { struct passwd *pw; -@@ -2982,10 +3008,25 @@ void mutt_init (int skip_sys_rc, LIST *c +@@ -3027,10 +3053,25 @@ Hostname = mutt_substrdup (utsname.nodename, p); p++; strfcpy (buffer, p, sizeof (buffer)); /* save the domain for below */