diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-13 12:45:04 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-13 12:45:04 +0000 |
commit | c2cb0f32b44a9918364af39c24b5643388c553f6 (patch) | |
tree | 378b5a002da81f8622913cc6a9aeac873e307ec9 /miscutils/mt.c | |
parent | 4f3d2deaa499af34c22a7f9be121131b0a5894b5 (diff) | |
download | busybox-w32-c2cb0f32b44a9918364af39c24b5643388c553f6.tar.gz busybox-w32-c2cb0f32b44a9918364af39c24b5643388c553f6.tar.bz2 busybox-w32-c2cb0f32b44a9918364af39c24b5643388c553f6.zip |
- patch from Denis Vlasenko to add and use bb_xopen3()
Diffstat (limited to 'miscutils/mt.c')
-rw-r--r-- | miscutils/mt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/miscutils/mt.c b/miscutils/mt.c index 44efedbe3..368fc66b9 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -101,8 +101,7 @@ int mt_main(int argc, char **argv) | |||
101 | break; | 101 | break; |
102 | } | 102 | } |
103 | 103 | ||
104 | if ((fd = open(file, mode, 0)) < 0) | 104 | fd = bb_xopen3(file, mode, 0); |
105 | bb_perror_msg_and_die("%s", file); | ||
106 | 105 | ||
107 | switch (code->value) { | 106 | switch (code->value) { |
108 | case MTTELL: | 107 | case MTTELL: |