← Commit list

334fcc8fd

Denys Vlasenko
Denys Vlasenko
2009-08-05
FAILED Duration: 158s

Subject

dd: conv=noerror should skip read errors using lseek (bug 539)

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/dd.c+2 -0
@@ -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++;