Bug in posix_spawn.c with patch

Maxim Solodovnik solomax666@gmail.com
Fri May 15 06:56:05 GMT 2026


Hello,

I believe there is a bug in `newlib/libc/posix/posix_spawn.c`
closing curly bracket for `switch` at line 228
is inside `#ifdef HAVE_FCHDIR` block
thus the file is NOT compilable if `HAVE_FCHDIR` is NOT defined
the patch against `main` branch is attached :)

-- 
Best regards,
Maxim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix_spawn.patch
Type: text/x-patch
Size: 378 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/newlib/attachments/20260515/5d7660ad/attachment.bin>


More information about the Newlib mailing list