From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Mar 7 18:58:40 2010 Return-Path: Delivered-To: freebsd-ports-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD6C81065676 for ; Sun, 7 Mar 2010 18:58:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id 1F9FF8FC20 for ; Sun, 7 Mar 2010 18:58:39 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.187.76.163]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.4/8.14.4) with ESMTP id o27IwWC5093059 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 7 Mar 2010 18:58:33 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <4B93F758.2020508@infracaninophile.co.uk> Date: Sun, 07 Mar 2010 18:58:32 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-GB; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: olli hauer References: <201003071750.o27Ho2SW027882@freefall.freebsd.org> In-Reply-To: <201003071750.o27Ho2SW027882@freefall.freebsd.org> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.95.3 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, SPF_FAIL autolearn=no version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-ports-bugs@freebsd.org, "Randal L. Schwartz" Subject: Re: ports/144502: mail/spamd port insists on fdescfs mount X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Mar 2010 18:58:40 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 07/03/2010 17:50:02, olli hauer wrote: > At the moment I have only the info mounting fdescfs to /dev/fd is useless, > eventually I can improve the check for FreeBSD8 (I'm still running 6.x/7.x in > production and 8.x only for testing and porting). The behaviour of fdescfs and devfs hasn't changed between 8.x and earlier versions. When mounted via devfs, /dev/fd/* will only supply character special devices for descriptors 0, 1 and 2. With fdescfs mounted, you get character special devices for all file descriptors opened by the process. See: http://lists.freebsd.org/pipermail/freebsd-fs/2006-August/002214.html and the definition of fildesc_drvinit() at the end of sys/kern/kern_descrip.c (which cvs blame says is unchanged since 2004). This is not properly documented anywhere I can see. Anyhow, if STD{IN,OUT,ERR} is sufficient for obspamd then the test in the init script could be reduced to if [ -c /dev/fd/0 ] ; then Otherwise, testing for fdescfs is correct. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.14 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkuT91gACgkQ8Mjk52CukIxfZQCeIa078E++tODXQXzbiH1Zxm2V T88An0iJ8YrqbRF2mcsm0aelD/9XKBe9 =+Kz2 -----END PGP SIGNATURE-----