Fix last change.
authorGerd Moellmann <gerd@gnu.org>
Thu, 13 Sep 2001 14:06:10 +0000 (14:06 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 13 Sep 2001 14:06:10 +0000 (14:06 +0000)
src/ChangeLog
src/filelock.c

index c053a15..57eefa9 100644 (file)
@@ -1,5 +1,8 @@
 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.
 
index 6e78a05..f82c16b 100644 (file)
@@ -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.  */