Mail Archives: djgpp-workers/2003/03/20/05:35:31
Hello.
Eli Zaretskii wrote:
>
> > Date: Wed, 19 Mar 2003 21:04:21 +0000
> > From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> >
> > According to POSIX: You can't get a file descriptor for a symlink using
> > open(). For a symlink, open() should follow the symlink.
> >
> > We have the additional options:
> >
> > * O_NOFOLLOW, which causes open() to fail, if the file is a symlink.
> > * O_NOLINK, which causes open() to actually open the symlink as a normal
> > file.
> >
> > If you've used O_NOLINK, I think it's reasonable to return info about the
> > symlink.
>
> Okay, thanks. So this logic should be inside `open', and `fstat'
> doesn't have to care about the issue.
[snip]
Yes, the logic is inside 'open'.
I'll commit the patch next Wednesday, if there's no further comment.
Thanks, bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -