Re: Documenting stat(2)

From: Igmar Palsenberg (maillist@chello.nl)
Date: Thu Jan 18 2001 - 15:52:02 EST


> 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/



This archive was generated by hypermail 2b29 : Tue Jan 23 2001 - 21:00:18 EST