symbolic links & travirse the tree

Der Herr Hofrat der.herr@mail.hofr.at
Sun Jul 28 00:03:00 GMT 2002


> Hello again gcc people,
> 
> Ok, after further testing I find all symbolic links are acting like
> directories. stat() cannot tell the difference. I'm using slackware
> linux 2.17.
>
...this has nothing to do with gcc...

if the link is pointing to a directory you get that back - use lstat
if you need info on the link it selfe .

hofrat 



More information about the Gcc-help mailing list