From owner-freebsd-hackers Fri Dec 20 8:48:45 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A733937B401 for ; Fri, 20 Dec 2002 08:48:43 -0800 (PST) Received: from ussenterprise.ufp.org (ussenterprise.ufp.org [208.185.30.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04A3F43EDC for ; Fri, 20 Dec 2002 08:48:43 -0800 (PST) (envelope-from bicknell@ussenterprise.ufp.org) Received: (from bicknell@localhost) by ussenterprise.ufp.org (8.11.1/8.11.1) id gBKGmgx48939 for freebsd-hackers@FreeBSD.ORG; Fri, 20 Dec 2002 11:48:42 -0500 (EST) (envelope-from bicknell) Date: Fri, 20 Dec 2002 11:48:42 -0500 From: Leo Bicknell To: freebsd-hackers@FreeBSD.ORG Subject: Re: Perl issue on freebsd 4.x? Message-ID: <20021220164842.GA48769@ussenterprise.ufp.org> Mail-Followup-To: freebsd-hackers@FreeBSD.ORG References: <20021220150434.GB46504@ussenterprise.ufp.org> <20021221025848.W45032-100000@starbug.ugh.net.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <20021221025848.W45032-100000@starbug.ugh.net.au> Organization: United Federation of Planets Reply-By: Fri Dec 27 11:41:40 EST 2002 X-Message-Flag: Put no trust in cryptic comments. X-PGP-Key: http://www.ufp.org/~bicknell/ 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 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In a message written on Sat, Dec 21, 2002 at 03:03:53AM +1100, Andrew wrote: > This is to maintain historical behaviour. Sys::Syslog never used to know > how to do unix sockets at all so to not change behaviour of old scripts > inet had to be the default. While of course only my opinion, but this to me seems a prime case of someone making a mistake early on that should be corrected, even at the expense of some backwards compatability. That said, I suspect making unix the default will not only fix some things, but it's unlikely to break anything. The current code does not allow you to specify the (inet) destination, it does a gethostname and then does a DNS lookup. How many boxes have a hostname that doesn't look up right in DNS so this fails, and thus the code fails? It should have been coded to 127.0.0.1, if it was going to do the inet thing. Since I don't see any flags to syslog to turn off unix domain sockets (although there is one to locate it at a different path) it seems assuming that exists is far safer than inet, where there are flags to turn it off, default security options in a base install that turn it off, and recomendations running around to turn it off. All things considered, if it's not going to be changed the documentation needs to be updated. The man page claims: NAME Sys::Syslog, openlog, closelog, setlogmask, syslog - Perl interface to the UNIX syslog(3) calls Note that syslog(3) in libc does not know how to do inet sockets at all. Thus it's not a perl interface to syslog(3), it should rather be called "Perl implementation of the syslog protocol, similar to syslog(3)." It may be picking at nits, but when I see something called an interface to...I assume it has the same semantics as the base code. --=20 Leo Bicknell - bicknell@ufp.org - CCIE 3440 PGP keys at http://www.ufp.org/~bicknell/ Read TMBG List - tmbg-list-request@tmbg.org, www.tmbg.org --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (FreeBSD) Comment: For info see http://www.gnupg.org iD8DBQE+A0nqNh6mMG5yMTYRAgOEAJ98NtNU8yc50171rudBHT/6Mlb4xgCggBsz +LoRY+VDR2Lkf9bxwZG5Rec= =aVXn -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message