[PATCH] printf: fix exit code for %c and %s

Denys Vlasenko vda.linux at googlemail.com
Fri Jun 26 22:11:33 UTC 2009


On Thu, Jun 25, 2009 at 9:05 PM, Colin Watson<cjwatson at ubuntu.com> wrote:
> print_direc needs to reset errno on entry, as some paths (those for %c
> and %s) don't go through multiconvert and thus don't reset errno there.
> This was showing up as a test suite failure:
>
>  FAIL: printf understands %s '"x' "'y" "'zTAIL"
>
> (I discovered this because one of the core components of the
> Debian/Ubuntu installer relies on printf in a 'set -e' script, and so
> the installer ended up completely non-functional.)
>
> Signed-off-by: Colin Watson <cjwatson at ubuntu.com>

Applied, thanks.

However I failed to reproduce the failure both on uclibc and glibc...
What libc do you use?
--
vda


More information about the busybox mailing list