X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/5d81d183a92497924d4f784426e9863a83998c83..08a1fabd9dc8a68cf09fa2df03e63f0402a5acc5:/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff?ds=inline diff --git a/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff b/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff index f7a94b0..0e8dcf8 100644 --- a/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff +++ b/debian/patches/debian-specific/Md.etc_mailname_gethostbyname.diff @@ -1,6 +1,9 @@ +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 @@ +@@ -47,6 +47,7 @@ #include #include #include @@ -8,7 +11,7 @@ #include #include -@@ -2911,6 +2912,31 @@ static int mutt_execute_commands (LIST * +@@ -2952,6 +2953,31 @@ return 0; } @@ -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 +@@ -3026,10 +3052,25 @@ Hostname = mutt_substrdup (utsname.nodename, p); p++; strfcpy (buffer, p, sizeof (buffer)); /* save the domain for below */