Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29791 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59789 invoked by uid 1010); 26 May 2007 02:43:45 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 59757 invoked from network); 26 May 2007 02:43:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 May 2007 02:43:45 -0000 Authentication-Results: pb1.pair.com smtp.mail=info@adaniels.nl; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=info@adaniels.nl; sender-id=unknown Received-SPF: error (pb1.pair.com: domain adaniels.nl from 82.94.236.173 cause and error) X-PHP-List-Original-Sender: info@adaniels.nl X-Host-Fingerprint: 82.94.236.173 loco.helderhosting.nl Linux 2.5 (sometimes 2.4) (4) Received: from [82.94.236.173] ([82.94.236.173:50307] helo=loco.helderhosting.nl) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 22/50-53386-EDE97564 for ; Fri, 25 May 2007 22:43:44 -0400 Received: from [192.168.1.170] (a80-126-54-132.adsl.xs4all.nl [80.126.54.132]) by loco (Postfix) with ESMTP id AD39351E2CC; Sat, 26 May 2007 04:43:39 +0200 (CEST) Message-ID: <46579EDB.5020901@adaniels.nl> Date: Sat, 26 May 2007 04:43:39 +0200 User-Agent: Thunderbird 1.5.0.10 (X11/20070403) MIME-Version: 1.0 To: Oliver Block Cc: Rasmus Lerdorf , internals@lists.php.net References: <4638E608.2090202@adaniels.nl> <200705260208.18082.lists@block-online.eu> <46577F7A.6000200@lerdorf.com> <200705260236.00461.lists@block-online.eu> In-Reply-To: <200705260236.00461.lists@block-online.eu> Content-Type: multipart/alternative; boundary="------------020601010404000208050800" Subject: Re: [PHP-DEV] Re: Still having lstat trouble From: info@adaniels.nl (Arnold Daniels) --------------020601010404000208050800 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 > > --------------020601010404000208050800--