From owner-freebsd-current Tue Sep 4 23:52:21 2001 Delivered-To: freebsd-current@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id EB79137B405 for ; Tue, 4 Sep 2001 23:52:17 -0700 (PDT) Received: from hades.hell.gr (patr530-b076.otenet.gr [195.167.121.204]) by mailsrv.otenet.gr (8.11.5/8.11.5) with ESMTP id f856q9I13656; Wed, 5 Sep 2001 09:52:10 +0300 (EEST) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id f856qYT05475; Wed, 5 Sep 2001 09:52:34 +0300 (EEST) (envelope-from charon@labs.gr) Date: Wed, 5 Sep 2001 09:52:34 +0300 From: Giorgos Keramidas To: Mike Heffner Cc: current@FreeBSD.ORG, Chris Wicklein Subject: Re: syslogd: Too many '/' in "/dev//console" Message-ID: <20010905095233.A5445@hades.hell.gr> References: <20010904220636.A23124@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.2.5i In-Reply-To: ; from mheffner@vt.edu on Tue, Sep 04, 2001 at 07:55:33PM -0400 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: Mike Heffner Subject: Re: syslogd: Too many '/' in "/dev//console" Date: Tue, Sep 04, 2001 at 07:55:33PM -0400 >=20 > On 04-Sep-2001 Giorgos Keramidas wrote: > |=20 > | The following patch seems to have fixed the bug for me. > |=20 >=20 > Yea, Kris said he was going to fix it. This must be some undefined behavi= or > because I tested the change in a test program and the two sizeofs were gi= ving > me the same result..strange ;) I want to test this without leaving "sizeof _PATH_DEV" surrounded by spaces, with sizeof() explicitly using parentheses. I'm not sure where the undefined behavior is triggered, but this is a very likely point, and the source of syslogd.c is just full of this. I have it fixed now in my local CVS tree. Hopefully Kris will commit something to fix it soon :-) -giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message