summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/dd.c b/src/dd.c
index 0aa1ffc8e..c04369a8c 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -552,7 +552,16 @@ copy (void)
skip (input_fd, input_file, skip_records, input_blocksize, ibuf);
if (seek_record > 0)
- skip (output_fd, output_file, seek_record, output_blocksize, obuf);
+ {
+ /* FIXME: this loses for
+ % ./dd if=dd seek=1 |:
+ ./dd: a1 standard output: Bad file number
+ 0+0 records in
+ 0+0 records out
+ */
+
+ skip (output_fd, output_file, seek_record, output_blocksize, obuf);
+ }
if (max_records == 0)
quit (exit_status);