This is the mail archive of the
cygwin-patches@sources.redhat.com
mailing list for the Cygwin project.
readlink() patch
- To: cygwin-patches at sourceware dot cygnus dot com
- Subject: readlink() patch
- From: Egor Duda <deo at logos-m dot ru>
- Date: Sun, 3 Sep 2000 21:33:28 +0400
- Organization: DEO
- Reply-To: Egor Duda <cygwin-patches at sourceware dot cygnus dot com>
Hi!
linux man says about readlink():
========================================================================
readlink places the contents of the symbolic link path in the buffer
buf, which has size bufsiz. readlink does not append a NUL character
to buf. It will truncate the contents (to a length of bufsiz
characters), in case the buffer is too small to hold all of the
contents.
========================================================================
susv2 is rather vague on this subject, but there's no "buffer too
small" in its list of error conditions. i don't know what other
standards say about readlink. this patch is to make cygwin readlink
behaving like linux one.
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19
readlink.ChangeLog
readlink.diff