Re: Documenting stat(2)

Igmar Palsenberg (maillist@chello.nl)
Thu, 18 Jan 2001 21:52:02 +0100 (CET)


> Nope stat should return the details of the symlink
> whereas lstat should return the details of the symlink target.

It's the other way around according to the manpage, and my code also says
it's the other way around.

It's logical the way it is..

I use lstat to check if a config file is a symlink, and if it is, it
refuses to open it.

Igmar

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/