diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-06 01:16:27 +0400 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-06 01:16:27 +0400 |
commit | 334fcc8fd4fdad3c52ac0fb591771888325b5bcf (patch) | |
tree | 638869a0efdcdd73c7d385b9696ff3ee683f8810 /coreutils/dd.c | |
parent | eecbb547d2884129a2490a449cd3dab328d95e19 (diff) |
dd: conv=noerror should skip read errors using lseek (bug 539)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r-- | coreutils/dd.c | 2 |
1 files changed, 2 insertions, 0 deletions
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++; |