much into the buffer on platforms without PATH_MAX.
+2008-07-23 Ulrich Drepper <drepper@redhat.com>
+
+ * lib/canonicalize-lgpl.c (__realpath): readlink can write too
+ much into the buffer on platforms without PATH_MAX.
+
2008-07-21 Eric Blake <ebb9@byu.net>
Warn, not fail, on stale version.
2008-07-21 Eric Blake <ebb9@byu.net>
Warn, not fail, on stale version.
- n = __readlink (rpath, buf, path_max);
+ n = __readlink (rpath, buf, path_max - 1);
if (n < 0)
{
int saved_errno = errno;
if (n < 0)
{
int saved_errno = errno;