Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: http://man.he.net/man3/readlink says: "Conforming applications should not assume that the returned contents of the symbolic link are null-terminated"
cygwin is not broken, but very (too much?) conforming in this case ;-) I think your second patch is the correct one, just keep the "return (int)r1;" because the return value is stored in a "linklen" variable. ---------- nosy: +amaury.forgeotdarc _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3813> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com