(current_lock_owner): Fix last change.
authorGerd Moellmann <gerd@gnu.org>
Fri, 14 Sep 2001 11:20:16 +0000 (11:20 +0000)
committerGerd Moellmann <gerd@gnu.org>
Fri, 14 Sep 2001 11:20:16 +0000 (11:20 +0000)
src/filelock.c

index f82c16b..bdfcda9 100644 (file)
@@ -1,5 +1,5 @@
 /* Lock files for editing.
-   Copyright (C) 1985, 86, 87, 93, 94, 96, 98, 1999, 2000
+   Copyright (C) 1985, 86, 87, 93, 94, 96, 98, 1999, 2000, 2001
    Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
@@ -440,7 +440,7 @@ current_lock_owner (owner, lfname)
 #ifdef ERANGE
       /* HP-UX reports ERANGE if the buffer is too small.  */
       if (len == -1 && errno == ERANGE)
-       continue;
+       len = bufsize;
 #endif
     }
   while (len >= bufsize);