Commit b6e97b0a authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(current_lock_owner): If readlink returns ERANGE,

take that to mean that the buffer is too small.
parent 81c3310d
......@@ -436,6 +436,11 @@ current_lock_owner (owner, lfname)
bufsize *= 2;
lfinfo = (char *) xrealloc (lfinfo, bufsize);
len = readlink (lfname, lfinfo, bufsize);
#ifdef ERANGE
/* HP-UX reports ERANGE if the buffer is too small. */
if (len == -1 && errno == ERANGE)
while (len >= bufsize);
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