bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Possible dd bug - no close of "if=/of=" fds


From: HARDY, Steven
Subject: Possible dd bug - no close of "if=/of=" fds
Date: Wed, 7 Dec 2005 08:47:33 -0000

Hello, 

I'm experiencing some problems trying to use "dd" to load firmware onto a
device, and I guess this could be a potential bug?

- dd if=myfirmware.bin of=/dev/mydevice

The problem is that /dev/mydevice returns -EIO if the load has been
unsuccessful, but dd always returns 0 whether this occurs or not.

I was expecting dd to explicitly close the if=/of= file descriptors and
return any errors, but looking at the code it seems to close only
stdin/stdout, and does not check for successful close of the input and
output files??

I am using coreutils-5.9.3 - any help or suggestions much appreciated.

Steve Hardy



This email is for the intended addressee only.
If you have received it in error then you must not use, retain, disseminate or 
otherwise deal with it.
Please notify the sender by return email.
The views of the author may not necessarily constitute the views of EADS 
Astrium Limited.
Nothing in this email shall bind EADS Astrium Limited in any contract or 
obligation.

EADS Astrium Limited, Registered in England and Wales No. 2449259
Registered Office: Gunnels Wood Road, Stevenage, Hertfordshire, SG1 2AS, England




reply via email to

[Prev in Thread] Current Thread [Next in Thread]