aboutsummaryrefslogtreecommitdiff
path: root/miscutils/mt.c
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-13 12:45:04 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-13 12:45:04 +0000
commitf0bf1ade78b709229cab0801347032478b02ef96 (patch)
tree378b5a002da81f8622913cc6a9aeac873e307ec9 /miscutils/mt.c
parenta39965951155a179f9e8afed70dd5f45ea70f280 (diff)
downloadbusybox-w32-f0bf1ade78b709229cab0801347032478b02ef96.tar.gz
busybox-w32-f0bf1ade78b709229cab0801347032478b02ef96.tar.bz2
busybox-w32-f0bf1ade78b709229cab0801347032478b02ef96.zip
- patch from Denis Vlasenko to add and use bb_xopen3()
git-svn-id: svn://busybox.net/trunk/busybox@14847 69ca8d6d-28ef-0310-b511-8ec308f3f277
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)
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: