summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/dd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 38dacc7..5281d81 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++;