Mail Archives: djgpp-workers/2000/08/02/16:04:38
Eli Zaretskii wrote:
> > +int
> > +stat(const char *path, struct stat *statbuf)
> > +{
> > + return lstat(path, statbuf);
> > +}
>
> If this is all `stat' does, then it is identical to `lstat', right?
That's the point.
> But AFAIK they should be different: if the file is a link, `lstat'
> brings the info about the link, not about its target.
Correct.
> I would expect
> `stat' to call `lstat' after it resolves the symlinks in its argument.
> I also don't see any symlink-related code in (what now is) `lstat',
> and lstat.txh doesn't say anything about symlinks.
This patch (as all previous) is meant as if release would happen tomorrow.
So it just adds lstat() wrapper. If political decision to accept symlinks
for the next DJGPP release is made, then there will be next patch to make
stat() actually resolve symlinks.
Laurynas
- Raw text -