From: Gerd Moellmann Date: Thu, 5 Apr 2001 14:59:37 +0000 (+0000) Subject: (getwd) [!HAVE_GETWD]: Unblock input before returning. X-Git-Tag: emacs-pretest-21.0.102~23 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=18b6bc735c95b65b0ca146f9f707f6c5e0b6e08d;p=emacs.git (getwd) [!HAVE_GETWD]: Unblock input before returning. --- 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) 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 != '/')