Date: Fri, 20 Dec 2002 11:48:42 -0500 From: Leo Bicknell <bicknell@ufp.org> To: freebsd-hackers@FreeBSD.ORG Subject: Re: Perl issue on freebsd 4.x? Message-ID: <20021220164842.GA48769@ussenterprise.ufp.org> In-Reply-To: <20021221025848.W45032-100000@starbug.ugh.net.au> References: <20021220150434.GB46504@ussenterprise.ufp.org> <20021221025848.W45032-100000@starbug.ugh.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021220164842.GA48769>