Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* [Caml-list] Unix.stat problem
@ 2004-05-24  5:56 skaller
  2004-05-24  6:08 ` Yutaka OIWA
  0 siblings, 1 reply; 3+ messages in thread
From: skaller @ 2004-05-24  5:56 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-24  7:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-24  5:56 [Caml-list] Unix.stat problem skaller
2004-05-24  6:08 ` Yutaka OIWA
2004-05-24  7:08   ` skaller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox