summaryrefslogtreecommitdiffhomepage
path: root/miscutils/mt.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-13 12:45:04 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-04-13 12:45:04 +0000
commitc2cb0f32b44a9918364af39c24b5643388c553f6 (patch)
tree378b5a002da81f8622913cc6a9aeac873e307ec9 /miscutils/mt.c
parent4f3d2deaa499af34c22a7f9be121131b0a5894b5 (diff)
- patch from Denis Vlasenko to add and use bb_xopen3()
Diffstat (limited to 'miscutils/mt.c')
-rw-r--r--miscutils/mt.c3
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)
break;
}
- if ((fd = open(file, mode, 0)) < 0)
- bb_perror_msg_and_die("%s", file);
+ fd = bb_xopen3(file, mode, 0);
switch (code->value) {
case MTTELL: