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

(Ffile_symlink_p): Fix last change.

parent 63680feb
......@@ -3106,15 +3106,18 @@ Otherwise returns nil.")
errno = 0;
valsize = readlink (XSTRING (filename)->data, buf, bufsize);
if (valsize == -1
if (valsize == -1)
{
#ifdef ERANGE
/* HP-UX reports ERANGE if buffer is too small. */
&& errno != ERANGE
if (errno == ERANGE)
valsize = bufsize;
else
#endif
)
{
xfree (buf);
return Qnil;
{
xfree (buf);
return Qnil;
}
}
}
while (valsize >= 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