Commit 620c4704 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

Fix last change.

parent b6e97b0a
2001-09-13 Gerd Moellmann <gerd@gnu.org>
* filelock.c (current_lock_owner): If readlink returns ERANGE,
take that to mean that the buffer is too small.
* fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
that to mean that the buffer is too small.
......
......@@ -435,6 +435,7 @@ current_lock_owner (owner, lfname)
{
bufsize *= 2;
lfinfo = (char *) xrealloc (lfinfo, bufsize);
errno = 0;
len = readlink (lfname, lfinfo, bufsize);
#ifdef ERANGE
/* HP-UX reports ERANGE if the buffer is too small. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment