Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: skaller <skaller@users.sourceforge.net>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] Unix.stat problem
Date: 24 May 2004 15:56:05 +1000	[thread overview]
Message-ID: <1085378165.6065.249.camel@pelican.wigram> (raw)

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


             reply	other threads:[~2004-05-24  5:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-24  5:56 skaller [this message]
2004-05-24  6:08 ` Yutaka OIWA
2004-05-24  7:08   ` skaller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1085378165.6065.249.camel@pelican.wigram \
    --to=skaller@users.sourceforge.net \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox