diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/filelock.c | 1 |
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 @@ | |||
| 1 | 2001-09-13 Gerd Moellmann <gerd@gnu.org> | 1 | 2001-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. */ |