> This is what the "Single Unix Specification" says. I read this as "if
orig
> is a file, and you can access(orig), and you can write to the destination
> dir, then link(orig,dest) will succeed".
> [EACCES] A component of either path prefix denies search
> permission, or the requested link requires writing in a directory with a
> mode that denies write permission, or the calling process does not have
> permission to access the existing file and this is required by the
> implementation.
There's no way that I'm a POSIX expert but the way that is phrased implies
to me that the definition of access is up to the implementation.