From owner-cvs-src@FreeBSD.ORG Wed Dec 13 11:09:59 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 F02AA16A403; Wed, 13 Dec 2006 11:09:59 +0000 (UTC) (envelope-from bde@zeta.org.au) Received: from mailout1.pacific.net.au (mailout1-3.pacific.net.au [61.8.2.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id B722643CB4; Wed, 13 Dec 2006 11:08:09 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy1.pacific.net.au (mailproxy1.pacific.net.au [61.8.2.162]) by mailout1.pacific.net.au (Postfix) with ESMTP id 89B6E5A3D40; Wed, 13 Dec 2006 22:09:35 +1100 (EST) Received: from besplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailproxy1.pacific.net.au (Postfix) with ESMTP id 911E68C0D; Wed, 13 Dec 2006 22:09:34 +1100 (EST) Date: Wed, 13 Dec 2006 22:09:34 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Pawel Jakub Dawidek In-Reply-To: <20061213074528.GA1815@garage.freebsd.pl> Message-ID: <20061213220608.F792@besplex.bde.org> References: <200612122005.kBCK54S3042289@repoman.freebsd.org> <20061213135203.G1136@delplex.bde.org> <20061213074528.GA1815@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/sys symlink.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:10:00 -0000 On Wed, 13 Dec 2006, Pawel Jakub Dawidek wrote: > On Wed, Dec 13, 2006 at 01:57:01PM +1100, Bruce Evans wrote: >> On Tue, 12 Dec 2006, Pawel Jakub Dawidek wrote: >> >>> pjd 2006-12-12 20:05:04 UTC >>> >>> FreeBSD src repository >>> >>> Modified files: >>> lib/libc/sys symlink.2 >>> Log: >>> symlink(2) return EACCES if a component of the name2 path prefix denies >>> write permission. >> >> Isn't that a bog in symlink(2)? POSIX and POLA don't mention it. ugh > > It has to be that way. You can't write to a directory you don't have > write permission, ie. you can't create files, directories, hardlinks and > symlinks. 'name2' is a file name, 'name1' is what symlink point at. That's only for the _final_ component (after pathname resolution). See my previous reply about this for mkfifo() and open() for more details. Bruce