Re: Re: Still having lstat trouble
| From: | Oliver Block | Date: | Sat, 26 May 2007 00:35:59 +0000 |
| Subject: | Re: Re: Still having lstat trouble | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29786@lists.php.net to get a copy of this message | ||
Am Samstag, 26. Mai 2007 02:29 schrieben Sie:
> Right, so the (ssb.sb.st_mode & S_IFMT) is S_IFDIR which is basically
> the OS telling us that it is a directory. I don't see what we can do if
> the OS is not telling us the right thing. The filestat code is a bit
> convoluted trying to deal with lots of strange operating systems, but
> this part of it seems pretty clear.
OK. But let me mention (without knowing the source code of stat) that
stat --format=%F /tmp/link-test
returns 'symbolic link'
So there must be different methods to find out!?
Regards,
Oliver