X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=init.c;h=1c3227054a23ab53f5da45b3bfbba24d608562b1;hp=5ad2e221ea587e120945676f7331c13134d3240d;hb=766fd6928123218aca635827248299ceeeb1d170;hpb=10b7d54ecaa5c54622bf1239b57fa2e3359db0e1 diff --git a/init.c b/init.c index 5ad2e22..1c32270 100644 --- a/init.c +++ b/init.c @@ -2640,15 +2640,12 @@ void mutt_init (int skip_sys_rc, LIST * commands) else Hostname = m_strdup(utsname.nodename); -#ifndef DOMAIN -#define DOMAIN buffer if (!p && getdnsdomainname (buffer, sizeof(buffer)) == -1) Fqdn = m_strdup("@"); else -#endif /* DOMAIN */ - if (*DOMAIN != '@') { - Fqdn = p_new(char, m_strlen(DOMAIN) + m_strlen(Hostname) + 2); - sprintf (Fqdn, "%s.%s", NONULL (Hostname), DOMAIN); /* __SPRINTF_CHECKED__ */ + if (*buffer != '@') { + Fqdn = p_new(char, m_strlen(buffer) + m_strlen(Hostname) + 2); + sprintf (Fqdn, "%s.%s", NONULL(Hostname), buffer); /* __SPRINTF_CHECKED__ */ } else Fqdn = m_strdup(NONULL (Hostname)); @@ -2734,14 +2731,11 @@ void mutt_init (int skip_sys_rc, LIST * commands) CurrentMenu = MENU_MAIN; - -#ifndef LOCALES_HACK /* Do we have a locale definition? */ if (((p = getenv ("LC_ALL")) != NULL && p[0]) || ((p = getenv ("LANG")) != NULL && p[0]) || ((p = getenv ("LC_CTYPE")) != NULL && p[0])) set_option (OPTLOCALES); -#endif #ifdef HAVE_GETSID /* Unset suspend by default if we're the session leader */