aboutsummaryrefslogtreecommitdiff
path: root/coreutils/dd.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/dd.c')
-rw-r--r--coreutils/dd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/coreutils/dd.c b/coreutils/dd.c
index 11508614f..cd97b24ee 100644
--- a/coreutils/dd.c
+++ b/coreutils/dd.c
@@ -106,9 +106,7 @@ int dd_main(int argc, char **argv)
106 buf = xmalloc(bs); 106 buf = xmalloc(bs);
107 107
108 if (infile != NULL) { 108 if (infile != NULL) {
109 if ((ifd = open(infile, O_RDONLY)) < 0) { 109 ifd = bb_xopen(infile, O_RDONLY);
110 bb_perror_msg_and_die("%s", infile);
111 }
112 } else { 110 } else {
113 ifd = STDIN_FILENO; 111 ifd = STDIN_FILENO;
114 infile = bb_msg_standard_input; 112 infile = bb_msg_standard_input;