Re: Re: Still having lstat trouble
| From: | Arnold Daniels | Date: | Sat, 26 May 2007 02:43:39 +0000 |
| Subject: | Re: Re: Still having lstat trouble | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-29791@lists.php.net to get a copy of this message | ||
I'm currently running linux kernel v2.6.20. So to test if that might be causing trouble, I re-installed and booted with kernel v2.6.17, which I was using under Ubuntu edgy (6.10). But it gave exactly the same results.
Also, if the problem was in the OS, wouldn't there be a single lstat call? The strace (I've just send) shows that there is an lstat, readlink and than another lstat call. Running it in the command line, only shows 1 lstat.
Best regards,
Arnold
Oliver Block wrote:
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