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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to