From owner-cvs-src@FreeBSD.ORG Wed Dec 13 11:20:41 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9C5A916A415; Wed, 13 Dec 2006 11:20:41 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDC1B43C9F; Wed, 13 Dec 2006 11:19:08 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 8293346DA5; Wed, 13 Dec 2006 12:20:35 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C39EB456B1; Wed, 13 Dec 2006 12:20:23 +0100 (CET) Date: Wed, 13 Dec 2006 12:20:41 +0100 From: Pawel Jakub Dawidek To: Bruce Evans Message-ID: <20061213112040.GA793@garage.freebsd.pl> References: <200612130958.kBD9wnu1024985@repoman.freebsd.org> <20061213213522.I792@besplex.bde.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jRHKVT23PllUwdXP" Content-Disposition: inline In-Reply-To: <20061213213522.I792@besplex.bde.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys mkfifo.2 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2006 11:20:41 -0000 --jRHKVT23PllUwdXP Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 13, 2006 at 10:04:42PM +1100, Bruce Evans wrote: > On Wed, 13 Dec 2006, Pawel Jakub Dawidek wrote: >=20 > >pjd 2006-12-13 09:58:49 UTC > > > > FreeBSD src repository > > > > Modified files: > > lib/libc/sys mkfifo.2 > > Log: > > mkfifo(2) returns EACCES when write permission is denied for a componen= t of > > the path prefix. >=20 > It isn't that broken. Write permission is only required for the _final_ > component of the path prefix (after pathname resolution). open.2 > expresses this as follows: Right, of course write permission is only needed for the parent directory of the object beeing created. > %%% > .It Bq Er EACCES > .Dv O_CREAT > is specified, > the file does not exist, > and the directory in which it is to be created > does not permit writing. > %%% >=20 > For mkfifo, O_CREAT is implicit, and if the file already exists then > mkfifo() cannot create it, unlike for open(), but as for open() the > writability of the parent directory is irrelevant -- mkfio() returns > EEXISTS in this case. >=20 > Old draft POSIX says for mkfifo(): >=20 > %%% > 24874 [EACCES] A component of the path prefix denie= s search permission, or write permission > 24875 is denied on the parent directory of= the FIFO to be created. > %%% I like this one, I'll use it where appropriate. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --jRHKVT23PllUwdXP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFf+IIForvXbEpPzQRAtjeAKDQfDxanVjAYGyEqCB6mo1dcnKs8QCeLv2D GQ7upWxx8SqBtkryeHCWRcg= =og0f -----END PGP SIGNATURE----- --jRHKVT23PllUwdXP--