From owner-freebsd-stable Mon Oct 21 4:14: 2 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95EDF37B401 for ; Mon, 21 Oct 2002 04:14:01 -0700 (PDT) Received: from rip.psg.com (rip.psg.com [147.28.0.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48E1543E3B for ; Mon, 21 Oct 2002 04:14:01 -0700 (PDT) (envelope-from randy@psg.com) Received: from localhost ([127.0.0.1] helo=rip.psg.com.psg.com) by rip.psg.com with esmtp (Exim 4.10) id 183aVP-0001S3-00; Mon, 21 Oct 2002 04:13:55 -0700 From: Randy Bush MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Ceri Davies Cc: Simon Dick , FreeBSD Stable Subject: Re: Syslog.pm Cannot get host name of local machine References: <1035196522.1771.12.camel@linux> <20021021104053.GA41043@submonkey.net> <20021021104831.GB41131@submonkey.net> Message-Id: Date: Mon, 21 Oct 2002 04:13:55 -0700 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG simon had the more correct patch *** /usr/libdata/perl/5.00503/Sys/Hostname.pm~ Mon Oct 21 03:16:31 2002 --- /usr/libdata/perl/5.00503/Sys/Hostname.pm Mon Oct 21 04:03:07 2002 *************** *** 98,103 **** --- 98,104 ---- local $SIG{__DIE__}; $host = `(hostname) 2>/dev/null`; # bsdish $ENV{'PATH'} = $pathstack; + $host; } # method 4 - sysV uname command (may truncate) method 4 will have the same problem randy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message