bug#1206: [BusyBox] bug#1206: head errors after successful completion with file argument
Matt Kraai
kraai at alumni.carnegiemellon.edu
Mon Aug 6 10:15:02 UTC 2001
On Mon, Aug 06, 2001 at 09:52:07AM -0400, David Douthitt wrote:
> Try this command:
>
> head -n 1 /etc/fstab
>
> It will execute successfully, but end with an error, apparently
> incorrect:
>
> # ./busybox head -n 1 /etc/fstab
> /dev/hda5 / ext2 defaults
> 1 1
> head: /etc/fstab: Not a typewriter
> #
I don't see this error, but the cause is clear. It is checking
errno directly, rather than calling ferror(3), to determine if
there was an error. Shame on me for writing such crap. Anyway,
this is another candidate fix for 0.60.1.
Matt
More information about the busybox
mailing list