Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Dec 2001 20:37:46 -0800 (PST)
From:      Dima Dorfman <dd@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/w w.c
Message-ID:  <200112200437.fBK4bk256772@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
dd          2001/12/19 20:37:46 PST

  Modified files:        (Branch: RELENG_4)
    usr.bin/w            w.c 
  Log:
  Change the type of 'l' (in main()) from u_long to in_addr_t like it
  should have been all this time.  This unbreaks DNS lookups on
  platforms where 'long' is not 32 bits (e.g., Alpha) because
  _gethostbydnsaddr() (in gethostbydns.c), called via gethostbyaddr(),
  will check that the given length corresponds to the length of
  addresses in the given family, and fail with EINVAL if it isn't.
  
  This change does not apply to -CURRENT because the latter uses
  realhostname() (which doesn't have this bug) to do its DNS lookups.
  
  Revision  Changes    Path
  1.38.2.5  +2 -2      src/usr.bin/w/w.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200112200437.fBK4bk256772>