Commit 18b6bc73 authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(getwd) [!HAVE_GETWD]: Unblock input before returning.

parent a55e4e68
......@@ -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 != '/')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment