From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA21564; Mon, 24 May 2004 07:56:12 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA21859 for ; Mon, 24 May 2004 07:56:11 +0200 (MET DST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i4O5u8EV027364 for ; Mon, 24 May 2004 07:56:09 +0200 Received: from [192.168.1.200] (ppp114-11.lns1.syd3.internode.on.net [150.101.114.11]) by smtp3.adl2.internode.on.net (8.12.9/8.12.9) with ESMTP id i4O5u6k2060307 for ; Mon, 24 May 2004 15:26:06 +0930 (CST) Subject: [Caml-list] Unix.stat problem From: skaller Reply-To: skaller@users.sourceforge.net To: caml-list Content-Type: text/plain Message-Id: <1085378165.6065.249.camel@pelican.wigram> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-4) Date: 24 May 2004 15:56:05 +1000 Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40B18E78.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; sourceforge:01 gcc:01 gcc:01 stupid:01 usr:01 -rw-r--r--:01 bug:01 bug:01 9660:01 glebe:01 ocaml:01 workaround:01 nsw:01 snail:02 namely:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Unix.stat (or my brain:) isn't working correctly on my system: CVS Ocaml, Linux, Redhat 9: gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) When I stat a symbolic link which is a directory, it is returning S_DIR as the kind. This is wrong, the name is a link, it should return S_LNK. Consequently it is impossible to make a directory tree (because I have a stupid directory containing a link to itself, namely /usr/include/gnome-xml/libxml However 'ls' has no problem, it knows it is a symbolic link: 4 -rw-r--r-- 1 root root 800 Jan 25 2003 HTMLtree.h 0 lrwxrwxrwx 1 root root 1 Jan 9 20:06 libxml -> ./ Please tell me if you know a workaround, if this really is a bug (in which case I'll file a report in the bug tracker), or if I'm just missing something .. -- John Skaller, mailto:skaller@users.sf.net voice: 061-2-9660-0850, snail: PO BOX 401 Glebe NSW 2037 Australia Checkout the Felix programming language http://felix.sf.net ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners