# HG changeset patch # User Gerd Moellmann # Date 986482777 0 # Node ID 78542938ed280f014d78727b32514a65755e4476 # Parent b63262a6cdcd4e402797c0692d491db23180d223 (getwd) [!HAVE_GETWD]: Unblock input before returning. diff -r b63262a6cdcd -r 78542938ed28 src/sysdep.c --- 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 != '/')