[BNE-PM] Symlinks and stat/lstat

Andrew Pollock apollock at bit.net.au
Mon Feb 7 02:45:14 CST 2000


Hi,

A question if I may...

I have a symbolic link. I understand that if I stat() that symlink, I'm
actually symlinking what it points to, and if I lstat() it, I'm getting a
stat() on the symlink itself.

In either case, how do I determine the name of the file that the symlink is
pointing to?

Thanks in advance

Andrew




More information about the Brisbane-pm mailing list