diff options
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r-- | coreutils/dd.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c index 10066575e..d29357dae 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c | |||
@@ -433,12 +433,7 @@ int dd_main(int argc UNUSED_PARAM, char **argv) | |||
433 | xmove_fd(xopen(infile, O_RDONLY), ifd); | 433 | xmove_fd(xopen(infile, O_RDONLY), ifd); |
434 | #else | 434 | #else |
435 | xmove_fd(mingw_xopen(infile, O_RDONLY), ifd); | 435 | xmove_fd(mingw_xopen(infile, O_RDONLY), ifd); |
436 | if (!strcmp(infile, "/dev/zero")) { | 436 | update_dev_fd(get_dev_type(infile), ifd); |
437 | mingw_read_zero(ifd); | ||
438 | } | ||
439 | else if (!strcmp(infile, "/dev/urandom")) { | ||
440 | mingw_read_random(ifd); | ||
441 | } | ||
442 | #endif | 437 | #endif |
443 | } else { | 438 | } else { |
444 | infile = bb_msg_standard_input; | 439 | infile = bb_msg_standard_input; |