[PATCH] ash: avoid GLIBC'ism %m

Johannes Schindelin Johannes.Schindelin at gmx.de
Fri Aug 4 11:03:36 UTC 2017


Hi Markus,

On Wed, 19 Jul 2017, Markus Gothe wrote:

> However it should be noted that this [scanf's %m format] seems not to be
> the same as glibc %m: "To use the dynamic allocation conversion
> specifier in C99 and C11, specify m as a length modifier as per
> POSIX.1-2008. That is, use %ms or %m[…]."

It would have been very surprising if scanf could interpret %m as reading
strerror(errno)... How would that work, to begin with?

Ciao,
Johannes


More information about the busybox mailing list