stat() problems.
Stefanos Koutsoutos <[email protected]>
| Newsgroups | org.kernel.vger.linux-gcc |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I'm facing problems with stat() system call. It seems that it follows
filesystem links! To be more accurate I try:
struct stat buf;
stat("this_is_a_link", &buf);
and then: S_ISLNK( buf.st_mode ) is false!
More, the mode is the same as the mode of the file it links to! I think
that this is not what it supposed to be done by stat(). Any ideas??
Thanks in advance.
Stefanos.
--
____________________
Stefanos Koutsoutos
Developer
MD5 S.A.
[email protected]
www.md5sa.com