[BusyBox] bug#1227: BusyBox] bug#1227: busybox:ddproblem

Matt Kraai kraai at alumni.cmu.edu
Tue Feb 5 08:01:03 UTC 2002


On Tue, Feb 05, 2002 at 12:58:41PM +0100, Robert Litwiniec wrote:
> Matt Kraai wrote:
> >On Mon, Jan 28, 2002 at 09:34:44AM +0100, Robert Litwiniec wrote:
> >
> >>I have a problem with dd applet:
> >>
> >>oryginal dd command:
> >>dd if=konfig.txt.raw of=/dev/fd0 seek=2879 count=1
> >>1+0 rekord?w wczytanych
> >>1+0 rekord?w zapisanych
> >>works ok.
> >>
> >>... and busybox:
> >>laptop:/home/linio/mini2# root/bin/busybox dd if=konfig.txt.raw 
> >>of=/dev/fd0 seek=2879 count=1
> >>dd: /dev/fd0: Invalid argument
> >>^^^^^^^^^^^^^^^^
> >>
> >
> >Could you please apply the following patch, repeat the command,
> >and send the output to this bug?
> 
> dd: ftruncate: /dev/fd0: Invalid argument.
> 
> conv=notrunc helps :)

GNU dd ignores errors from ftruncate unless the output is a file,
directory, or shared memory region.  I guess BusyBox also needs to
do so.  Ugh.

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20020205/91c7c378/attachment.pgp 


More information about the busybox mailing list