projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adjust Erik's change, as I don't claim copyright of the applet.
[oweals/busybox.git]
/
coreutils
/
dd.c
diff --git
a/coreutils/dd.c
b/coreutils/dd.c
index 11508614fbc661cb75165c0ed056f95e606a700f..cd97b24ee52ffd7613397a11fc3a4389d099f0d8 100644
(file)
--- a/
coreutils/dd.c
+++ b/
coreutils/dd.c
@@
-106,9
+106,7
@@
int dd_main(int argc, char **argv)
buf = xmalloc(bs);
if (infile != NULL) {
- if ((ifd = open(infile, O_RDONLY)) < 0) {
- bb_perror_msg_and_die("%s", infile);
- }
+ ifd = bb_xopen(infile, O_RDONLY);
} else {
ifd = STDIN_FILENO;
infile = bb_msg_standard_input;