From owner-freebsd-hackers Wed Mar 27 8:49:29 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.dsab.rresearch.com (12-228-204-152.client.attbi.com [12.228.204.152]) by hub.freebsd.org (Postfix) with ESMTP id 0248237B404 for ; Wed, 27 Mar 2002 08:49:21 -0800 (PST) Received: by mail.dsab.rresearch.com (Postfix, from userid 1000) id 1F2F61DBE; Wed, 27 Mar 2002 08:49:21 -0800 (PST) Date: Wed, 27 Mar 2002 08:49:20 -0800 From: Scott Blachowicz To: Matthias Buelow Cc: freebsd-hackers@freebsd.org Subject: Re: ports/36307: nmh port cuts off last part of sender domain Message-ID: <20020327084920.A84514@sabami.seaslug.org> Reply-To: Scott Blachowicz References: <20020326201407.A55900@sabami.seaslug.org> <20020327144432.4CE71AEB8@reiher.informatik.uni-wuerzburg.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20020327144432.4CE71AEB8@reiher.informatik.uni-wuerzburg.de>; from mkb@informatik.uni-wuerzburg.de on Wed, Mar 27, 2002 at 03:44:32PM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Mar 27, 2002 at 03:44:32PM +0100, Matthias Buelow wrote: > ... > This is both a problem in nmh aswell as FreeBSD; nmh shouldn't rely > on uname(3) for getting a full Internet hostname as "nodename"; > FreeBSD should raise SYS_NMLN to provide enough place for an Internet > hostname. > ... > My proposal: > > Make nmh depend on sth. else than uname(3), and also push up > FreeBSD's SYS_NMLN (if not already done so in -CURRENT, haven't > checked.) Well...I'll work on getting the nmh port modified to avoid uname(3). It's already conditionalized on a HAVE_UNAME define, so just turning that define off should take care of it. It looks like it'll use gethostname(3) instead and the calling code passes a BUFSIZ (1024) char buffer in...the gethostname(3) man page warns that it's limited to 256 chars, so that should do the trick, I think. Thanx, -- Scott Blachowicz To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message