Re: [PATCH] coreutils/printf: fix errno clobbering with glibc 2.43
Harald van Dijk via busybox <[email protected]>
| Newsgroups | gmane.linux.busybox |
|---|---|
| Message-ID | <[email protected]> |
On 17/03/2026 10:30, Rasmus Villemoes wrote: > On Tue, Mar 17 2026, Harald van Dijk via busybox <[email protected]> wrote: > >> On 16/03/2026 14:23, David Laight via busybox wrote: >>> On Mon, 16 Mar 2026 12:40:59 +0530 >>> Hemanth Kumar M D via busybox <[email protected]> wrote: >>> >>>> busybox printf uses errno as an accumulator and returns exit code 1 >>>> if errno is non-zero. > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > This is the bug in busybox that should be fixed. busybox's design here is unconventional but it's been done that way for a long time, and the patch correctly fixes things in line with the current design. If you want to submit a different patch instead that goes against the current design to do things more conventionally, go for it, but I suspect that will end up being a bigger and riskier change. Cheers, Harald van Dijk