Mail Archives: djgpp-workers/2000/08/02/03:45:22
On Tue, 1 Aug 2000, Laurynas Biveinis wrote:
> OK, here is reworked patch:
>
> - New stat.c is diffed against /dev/null
> - lstat.c is diffed against old stat.c
> - everything else has been left untouched.
Thanks!
> +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?
But AFAIK they should be different: if the file is a link, `lstat'
brings the info about the link, not about its target. 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.
What am I missing?
- Raw text -