* exceptions.cc (interruptible): Remove obsolete tests.
(sigreturn): Construct pseudo-frame-pointer so that signal handler can figure out where to put return address when signals are coming in quickly. * path.cc (cwdstuff::get): Allow length 0 buffer length when buffer when NULL.
This commit is contained in:
@@ -2899,7 +2899,11 @@ cwdstuff::get (char *buf, int need_posix, int with_chroot, unsigned ulen)
|
||||
{
|
||||
MALLOC_CHECK;
|
||||
|
||||
if (ulen == 0)
|
||||
if (ulen)
|
||||
/* nothing */;
|
||||
else if (buf == NULL)
|
||||
ulen = (unsigned) -1;
|
||||
else
|
||||
{
|
||||
set_errno (EINVAL);
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user