> > So it seems to me the _use_ of a "" target symlink
> > (in all but the final path component position) is exactly
> > equivalent to the use of a "/" target symlink.  When used in
> > the final path component position, you get either the symlink
> > or ENOENT.  The POSIX excerpt Garrett quoted seems to match
> > this.
> 
> No, because the relevant slash is in the pathname resulting from
> simple replacement of the full path prefix (<prefix>/<symlink>)
> with the symlink's contents.  Quoting Garrett's quote:

IMHO the key point is the *resulting* remaining pathname
after substitution.

Normally one would simply prepend the <symlink> contents
before the <suffix>, see if the resulting pathname starts
with a '/', if so start the search at root else start the
search at the parent of symlink.  In any case any leading
slashes are removed.  In other words the <suffix> bits are
not kept separately from <symlink> bits.  This is a simpler
implementation and seems to match what posix says.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to