(getwd) [!HAVE_GETWD]: Unblock input before returning.
This commit is contained in:
parent
a55e4e68ee
commit
18b6bc735c
1 changed files with 4 additions and 1 deletions
|
@ -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 != '/')
|
||||
|
|
Loading…
Add table
Reference in a new issue