aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-13 14:06:10 +0000
committerGerd Moellmann2001-09-13 14:06:10 +0000
commit620c4704a93c3e9034f376e2e20852b3ee0a3b34 (patch)
tree007af52634bba7b020a3f1dbcfd02098a373201c /src
parentb6e97b0af194bbee11d5f727618746e8125d3379 (diff)
downloademacs-620c4704a93c3e9034f376e2e20852b3ee0a3b34.tar.gz
emacs-620c4704a93c3e9034f376e2e20852b3ee0a3b34.zip
Fix last change.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/filelock.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c053a1530d1..57eefa996e3 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12001-09-13 Gerd Moellmann <gerd@gnu.org> 12001-09-13 Gerd Moellmann <gerd@gnu.org>
2 2
3 * filelock.c (current_lock_owner): If readlink returns ERANGE,
4 take that to mean that the buffer is too small.
5
3 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take 6 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
4 that to mean that the buffer is too small. 7 that to mean that the buffer is too small.
5 8
diff --git a/src/filelock.c b/src/filelock.c
index 6e78a05e309..f82c16b7996 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -435,6 +435,7 @@ current_lock_owner (owner, lfname)
435 { 435 {
436 bufsize *= 2; 436 bufsize *= 2;
437 lfinfo = (char *) xrealloc (lfinfo, bufsize); 437 lfinfo = (char *) xrealloc (lfinfo, bufsize);
438 errno = 0;
438 len = readlink (lfname, lfinfo, bufsize); 439 len = readlink (lfname, lfinfo, bufsize);
439#ifdef ERANGE 440#ifdef ERANGE
440 /* HP-UX reports ERANGE if the buffer is too small. */ 441 /* HP-UX reports ERANGE if the buffer is too small. */