This is the mail archive of the cygwin-patches@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

readlink() patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]