"Anselm Martin Hoffmeister" <an...@ho...> writes:
> > I looked at your code. I think your implementation isn't quite correct.
> > The semantics of a symlink are:
> >
> > If the link starts with / then it's an absolute path and replaces the
> > filename and the operation is retried.
> >
> > Otherwise it's relative and appended to the current directory and the
> > operation is retried.
>
> Correct. I'm going to fix this immediately.
> The relative part is ok, isn't it? SO I'll just insert an if-statement for
> the absolute path part.
I would suggest that we error on an absolute symlink. I have
a very hard time seeing how an absolute symlink could be used properly
in this context. I guess in an nfs-root situation it might work.
But I keep having visions of absolute symlinks pointing to a different
location on the server than on exported nfs subtree.
Eric
|