commit | c2cb0f32b44a9918364af39c24b5643388c553f6 | [log] [tgz] |
---|---|---|
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | Thu Apr 13 12:45:04 2006 +0000 |
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | Thu Apr 13 12:45:04 2006 +0000 |
tree | 378b5a002da81f8622913cc6a9aeac873e307ec9 | |
parent | 4f3d2deaa499af34c22a7f9be121131b0a5894b5 [diff] [blame] |
- patch from Denis Vlasenko to add and use bb_xopen3()
diff --git a/miscutils/mt.c b/miscutils/mt.c index 44efedb..368fc66 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c
@@ -101,8 +101,7 @@ 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: