dd: conv=noerror should skip read errors using lseek (bug 539)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
eecbb547d2
commit
334fcc8fd4
@ -296,6 +296,8 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
|
|||||||
goto die_infile;
|
goto die_infile;
|
||||||
n = ibs;
|
n = ibs;
|
||||||
bb_simple_perror_msg(infile);
|
bb_simple_perror_msg(infile);
|
||||||
|
/* GNU dd with conv=noerror skips over "bad blocks" */
|
||||||
|
xlseek(ifd, ibs, SEEK_CUR);
|
||||||
}
|
}
|
||||||
if ((size_t)n == ibs)
|
if ((size_t)n == ibs)
|
||||||
G.in_full++;
|
G.in_full++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user