https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122677
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Your patch makes no sense, errno is only set if failed == -1 so testing errno when failed == 0 cannot be right.
redi at gcc dot gnu.org via Gcc-bugs Thu, 13 Nov 2025 13:00:44 -0800
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122677
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- Your patch makes no sense, errno is only set if failed == -1 so testing errno when failed == 0 cannot be right.