--- Begin Message ---
Subject: |
Bug in dd: it sends wrong messages to stderr |
Date: |
Sat, 3 Nov 2012 16:28:49 +0100 |
User-agent: |
KMail/1.13.6 (Linux/2.6.38-15-generic; KDE/4.6.5; x86_64; ; ) |
Dear sirs:
I send you a bug report.
# DESCRIPTION
Bug in dd: it sends wrong messages to stderr.
For example, when I do backups, I see "errors" from dd... that really aren't.
# WAY TO REPRODUCE THE BUG
A user can execute:
partition=$(mount | awk '$2=="on" && $3=="/" {print $1}')
sudo dd if="$partition" of=/tmp/copseg.dd count=1 bs=512 >/dev/null
and then he sees something like this in his screen:
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0,000129625 s, 3,9 MB/s
# EXPECTED RESULTS:
The user should see nothing, as there was no error and stdout was redirected
to /dev/null.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#12794: Bug in dd: it sends wrong messages to stderr |
Date: |
Sat, 03 Nov 2012 12:08:45 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121028 Thunderbird/16.0.2 |
On 11/03/2012 08:28 AM, Ganton wrote:
> when I do backups, I see "errors" from dd... that really aren't.
You have a point, but I'm afraid that dd is documented to behave
that way, and it's part of the POSIX standard, and lots of people
depend on it. To turn off the chatter, use "dd status=noxfer".
--- End Message ---