]> git.ipfire.org Git - thirdparty/coreutils.git/commit
dd: avoid or diagnose some problems with short reads
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 5 Mar 2011 08:14:25 +0000 (00:14 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 6 Mar 2011 00:06:34 +0000 (16:06 -0800)
commit194c1e89a41cab90e871bf120ccf37ce4ab4dc9c
tree2d5a59a500c1b9b5853a067fef0e6b17f0b1d3b8
parent5bf48c1186762b66b39676cf4c00be714d401ec3
dd: avoid or diagnose some problems with short reads

* src/dd.c (warn_partial_read): New static var.
(iread): Diagnose partial reads if needed.
(iwrite): Don't diagnose them here; not needed any more.
(scanargs): Determine whether partial reads should be diagnosted.
src/dd.c