From 738ef71cec083add9e820ce352b7a5cc183e360c Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 2 Nov 2004 20:18:26 +0000 Subject: [PATCH] xreadlink problems with SSIZE_MAX. --- lib/ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ChangeLog b/lib/ChangeLog index 540db17d65..46da8729eb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,13 @@ +2004-11-02 Paul Eggert + + * 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 + , + if readlink fails with buffer size just under MAXSIZE, try again + with MAXSIZE. + 2004-11-02 Derek R. Price and Paul Eggert -- 2.30.2