aboutsummaryrefslogtreecommitdiff
path: root/coreutils/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r--coreutils/dd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 3054ec6ea..fc8b1dbb2 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -502,6 +502,9 @@ int dd_main(int argc UNUSED_PARAM, char **argv)
502 } 502 }
503 if (seek) { 503 if (seek) {
504 size_t blocksz = (G.flags & FLAG_SEEK_BYTES) ? 1 : obs; 504 size_t blocksz = (G.flags & FLAG_SEEK_BYTES) ? 1 : obs;
505#if ENABLE_PLATFORM_MINGW32
506 seek_sparse(ofd, seek * blocksz);
507#endif
505 if (lseek(ofd, seek * blocksz, SEEK_CUR) < 0) 508 if (lseek(ofd, seek * blocksz, SEEK_CUR) < 0)
506 goto die_outfile; 509 goto die_outfile;
507 } 510 }