Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Unix.stat problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: [Caml-list] Unix.stat problem
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