Fixes busybox perror patch (BB)
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 20 Jan 2015 02:26:47 +0000 (21:26 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 20 Jan 2015 02:26:47 +0000 (21:26 -0500)
commitb0514862de048412bc638f898ff1de816badcce7
treef956e0a8943781d8e8030515b4b0fd89207a816a
parent7a074c218234d0d6b81a7938a6df852af4b8d229
Fixes busybox perror patch (BB)

The old patch to BB was buggy.  fputs() now sets errno internally in
some cases, which is legal.  I shouldn't have checked errno blindly
without checking the ret of fputs().

You'll need to repatch and build busybox.  The 'easiest' way is to
download the tarball, extract the old echo.c, and reapply the patch.

From the directory containing busybox-1.17.3:

$ wget http://www.busybox.net/downloads/busybox-1.17.3.tar.bz2
$ tar -xjf busybox-1.17.3.tar.bz2 busybox-1.17.3/coreutils/echo.c
$ patch -p1 < $AKAROS_REPO/tools/patches/busybox/bb-echo-perror.patch
$ cd busybox-1.17.3 ; make
$ cp busybox_unstripped $AKAROS_REPO/kern/kfs/bin/busybox
tools/patches/busybox/bb-echo-perror.patch