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

This commit is contained in:
Gerd Moellmann 2001-04-05 14:59:37 +00:00
parent a55e4e68ee
commit 18b6bc735c

View file

@ -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 != '/')