diff options
| author | Gerd Moellmann | 2001-04-05 14:59:37 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-05 14:59:37 +0000 |
| commit | 18b6bc735c95b65b0ca146f9f707f6c5e0b6e08d (patch) | |
| tree | dda33d492f4f6c3410de3a9a443c02d4289f62ec /src | |
| parent | a55e4e68ee2f62bb2715483cdb4c355d1e8acdca (diff) | |
| download | emacs-18b6bc735c95b65b0ca146f9f707f6c5e0b6e08d.tar.gz emacs-18b6bc735c95b65b0ca146f9f707f6c5e0b6e08d.zip | |
(getwd) [!HAVE_GETWD]: Unblock input before returning.
Diffstat (limited to 'src')
| -rw-r--r-- | src/sysdep.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index e3a1821a8b3..1be3c62c1da 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -3349,7 +3349,10 @@ getwd (pathname) | |||
| 3349 | BLOCK_INPUT; /* getcwd uses malloc */ | 3349 | BLOCK_INPUT; /* getcwd uses malloc */ |
| 3350 | spath = npath = getcwd ((char *) 0, MAXPATHLEN); | 3350 | spath = npath = getcwd ((char *) 0, MAXPATHLEN); |
| 3351 | if (spath == 0) | 3351 | if (spath == 0) |
| 3352 | return spath; | 3352 | { |
| 3353 | UNBLOCK_INPUT; | ||
| 3354 | return spath; | ||
| 3355 | } | ||
| 3353 | /* On Altos 3068, getcwd can return @hostname/dir, so discard | 3356 | /* On Altos 3068, getcwd can return @hostname/dir, so discard |
| 3354 | up to first slash. Should be harmless on other systems. */ | 3357 | up to first slash. Should be harmless on other systems. */ |
| 3355 | while (*npath && *npath != '/') | 3358 | while (*npath && *npath != '/') |