<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3298: Mutt's way to get the FQDN is broken



#3298: Mutt's way to get the FQDN is broken
---------------------+------------------------------------------------------
  Reporter:  vinc17  |       Owner:  mutt-dev
      Type:  defect  |      Status:  new     
  Priority:  major   |   Milestone:          
 Component:  mutt    |     Version:  1.5.20  
Resolution:          |    Keywords:          
---------------------+------------------------------------------------------

Comment(by Vincent Lefevre):

 {{{
 [Sent by reply via fleas, because I'm currently using a dial-up
 connection. I hope that fleas won't break the reply too much.]

 On 2009-07-23 00:37:30 -0000, Mutt wrote:

 I don't know, but note that the gethostbyaddr(3) man page under Linux
 says:

 CONFORMING TO
        POSIX.1-2001 specifies gethostbyname(), gethostbyaddr(),
        sethostent(), endhostent(), gethostent(), and h_errno;
        gethostbyname(), gethostbyaddr(), and h_errno are marked
        obsolescent in that standard. POSIX.1-2008 removes the
        specifications of gethostbyname(), gethostbyaddr(), and
        h_errno, recommending the use of getaddrinfo(3) and
        getnameinfo(3) instead.

 So, I'd say that it's better to use getaddrinfo() when available.
 Possibly look at the source of the hostname utility.
 }}}

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3298#comment:>
Mutt <http://www.mutt.org/>
The Mutt mail user agent