This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: symbolic links & travirse the tree
- From: Der Herr Hofrat <der dot herr at mail dot hofr dot at>
- To: danny <danny at 3rdplanetsoftware dot com>
- Cc: gcc gnu <gcc-help at gcc dot gnu dot org>
- Date: Sun, 28 Jul 2002 08:07:50 +0200 (CEST)
- Subject: Re: symbolic links & travirse the tree
> 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