GNU bug report logs - #28432
dd: warn about partial read on final iread

Previous Next

Package: coreutils;

Reported by: Barry Handelman <barry.handelman <at> gmail.com>

Date: Tue, 12 Sep 2017 15:55:02 UTC

Severity: wishlist

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Barry Handelman <barry.handelman <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: dd doesn't warn about partial read on final call to iread
Date: Tue, 12 Sep 2017 15:51:30 +0000
[Message part 1 (text/plain, inline)]
The iread function in dd.c issues a warning if the previous read was short,
suggesting that you use iflag=fullblock

However, the warning is issued when the previous call to iread was partial,
so if only the final read was short then no warning is issued.
Importantly, this will always be the case when there was only one read, and
it was partial.

I'd suggest that if the strategy of warning on subsequent reads is to be
used, the warning routine should be run once again after the final read.
[Message part 2 (text/html, inline)]

This bug report was last modified 6 years and 320 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.