From: Denys Vlasenko Date: Wed, 5 Aug 2009 21:16:27 +0000 (+0200) Subject: dd: conv=noerror should skip read errors using lseek (bug 539) X-Git-Tag: 1_15_0~28 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=334fcc8fd4fdad3c52ac0fb591771888325b5bcf;p=oweals%2Fbusybox.git dd: conv=noerror should skip read errors using lseek (bug 539) Signed-off-by: Denys Vlasenko --- diff --git a/coreutils/dd.c b/coreutils/dd.c index 38dacc71d..5281d8118 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -296,6 +296,8 @@ int dd_main(int argc UNUSED_PARAM, char **argv) goto die_infile; n = ibs; bb_simple_perror_msg(infile); + /* GNU dd with conv=noerror skips over "bad blocks" */ + xlseek(ifd, ibs, SEEK_CUR); } if ((size_t)n == ibs) G.in_full++;