busybox 1.2.1 diff is buggy

Denis Vlasenko vda.linux at googlemail.com
Sat Jan 6 15:03:31 PST 2007


On Saturday 06 January 2007 15:19, Dirk Clemens wrote:
> Hi
> 
> I use busybox 1.2.1 with current patches on
> a Siemens Gigaset M740AV (dvb-t setopbox, mips)
> 
> I have found the following diff error:
> 
> $ echo abc >foo
> $ echo abc | diff - foo
> --- -   Sat Jan  6 15:12:21 2007
> +++ foo Sat Jan  6 15:12:12 2007
> @@ -0,0 +1 @@
> +abc
> 
> $ echo $?
> 1

diff doesn't support diffing non-seekable streams currently.
Code uses fseek() and rewind().

I will make diff complain and exit instead of producing bad diff.
Can't say when proper fix will be done.
--
vda


More information about the busybox mailing list