Mercurial > emacs
changeset 37219:78542938ed28
(getwd) [!HAVE_GETWD]: Unblock input before returning.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Thu, 05 Apr 2001 14:59:37 +0000 |
parents | b63262a6cdcd |
children | bd650fe3380e |
files | src/sysdep.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Thu Apr 05 14:05:12 2001 +0000 +++ b/src/sysdep.c Thu Apr 05 14:59:37 2001 +0000 @@ -3349,7 +3349,10 @@ BLOCK_INPUT; /* getcwd uses malloc */ spath = npath = getcwd ((char *) 0, MAXPATHLEN); if (spath == 0) - return spath; + { + UNBLOCK_INPUT; + return spath; + } /* On Altos 3068, getcwd can return @hostname/dir, so discard up to first slash. Should be harmless on other systems. */ while (*npath && *npath != '/')