From owner-cvs-all Wed Dec 19 20:37:49 2001
Delivered-To: cvs-all@freebsd.org
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
by hub.freebsd.org (Postfix) with ESMTP
id 49C4B37B405; Wed, 19 Dec 2001 20:37:46 -0800 (PST)
Received: (from dd@localhost)
by freefall.freebsd.org (8.11.6/8.11.6) id fBK4bk256772;
Wed, 19 Dec 2001 20:37:46 -0800 (PST)
(envelope-from dd)
Message-Id: <200112200437.fBK4bk256772@freefall.freebsd.org>
From: Dima Dorfman
Date: Wed, 19 Dec 2001 20:37:46 -0800 (PST)
To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject: cvs commit: src/usr.bin/w w.c
X-FreeBSD-CVS-Branch: RELENG_4
Sender: owner-cvs-all@FreeBSD.ORG
Precedence: bulk
List-ID:
List-Archive: (Web Archive)
List-Help: (List Instructions)
List-Subscribe:
List-Unsubscribe:
X-Loop: FreeBSD.ORG
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