changeset 5386:c008e99bcbab

xreadlink problems with SSIZE_MAX.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 02 Nov 2004 20:18:26 +0000
parents 3c3f7d39051d
children 21f9e658d032
files lib/ChangeLog
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,13 @@
+2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+	* xreadlink.c (MAXSIZE): New macro.
+	(xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
+	size does not exceed MAXSIZE.  Avoid cast.
+	As suggested by Mark D. Baushke in
+	<http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
+	if readlink fails with buffer size just under MAXSIZE, try again
+	with MAXSIZE.
+
 2004-11-02  Derek R. Price  <derek@ximbiot.com>
        and  Paul Eggert  <eggert@cs.ucla.edu>