[BusyBox] dd hang problem!

Glenn McGrath bug1 at optushome.com.au
Wed Sep 13 23:14:09 UTC 2000


robotti at metconnect.com wrote:
> 
> When i do this with dd from the latest
> cvs bb it hangs.
> 
> dd if=image of=image_out
> 
> It copies image to image_out, but
> i have to press ctrl-c to exit
> dd.
> 
> The gnu dd exits with this for the
> 500k image.
> 
> dd if=image of=image_out
> 500+1 records in
> 500+1 records out
> 
This is fixed in CVS, problem was it was exiting on -1 (error) Bytes
being read/written, it was happily looping reading and writing 0 bytes.
It now exits if <1 bytes was read/written.

May as well use fullread as well rather than just read, makes no diff in
size, but better to use common code.


Glenn





More information about the busybox mailing list