diff options
author | Ron Yorston <rmy@pobox.com> | 2018-03-23 16:42:54 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2018-03-23 16:42:54 +0000 |
commit | 36065f083a7eba3e0c6a9047c835b7efd1c61e9d (patch) | |
tree | 7e65c0c56977a4f21e2503636d52f7fcee48fdbe /coreutils | |
parent | 6cff8357023adb4d5c9daa027522f883f3905f4c (diff) | |
download | busybox-w32-36065f083a7eba3e0c6a9047c835b7efd1c61e9d.tar.gz busybox-w32-36065f083a7eba3e0c6a9047c835b7efd1c61e9d.tar.bz2 busybox-w32-36065f083a7eba3e0c6a9047c835b7efd1c61e9d.zip |
win32: save a few bytes in device file support
Diffstat (limited to 'coreutils')
-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; |