From owner-freebsd-bugs@FreeBSD.ORG Sat Mar 27 10:40:22 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8741B16A4CE for ; Sat, 27 Mar 2004 10:40:22 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8058243D39 for ; Sat, 27 Mar 2004 10:40:22 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2RIeMbv044195 for ; Sat, 27 Mar 2004 10:40:22 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2RIeMVT044194; Sat, 27 Mar 2004 10:40:22 -0800 (PST) (envelope-from gnats) Date: Sat, 27 Mar 2004 10:40:22 -0800 (PST) Message-Id: <200403271840.i2RIeMVT044194@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Valentin Nechayev Subject: Re: misc/63020: 'utsname' structure field 'nodename' is too short X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Valentin Nechayev List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 18:40:22 -0000 The following reply was made to PR misc/63020; it has been noted by GNATS. From: Valentin Nechayev To: Cian Synnott Cc: FreeBSD-gnats-submit@freebsd.org, cirt@eircom.net Subject: Re: misc/63020: 'utsname' structure field 'nodename' is too short Date: Sat, 27 Mar 2004 20:38:21 +0200 CS> The utsname structure defined in the sys/utsname.h has a maximum of CS> 32 characters on all fields, including the 'nodename' - the network CS> name of the machine. This could reasonably be expected by a CS> programmer using the uname() call to be MAXHOSTNAMELEN in length. CS> However, long hostnames returned from the wrapped sysctl() are CS> truncated. 5.* fixes this using variable sized utsname. I think 4.* would not be fixed because their life is closed to finish. -netch-