diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/crontab.c | 2 | ||||
-rw-r--r-- | miscutils/mt.c | 2 | ||||
-rw-r--r-- | miscutils/rx.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/crontab.c b/miscutils/crontab.c index a8e650c60..1acacc676 100644 --- a/miscutils/crontab.c +++ b/miscutils/crontab.c | |||
@@ -266,7 +266,7 @@ static int GetReplaceStream(const char *user, const char *file) | |||
266 | exit(0); | 266 | exit(0); |
267 | 267 | ||
268 | bb_default_error_retval = 0; | 268 | bb_default_error_retval = 0; |
269 | fd = xopen3(file, O_RDONLY, 0); | 269 | fd = xopen(file, O_RDONLY); |
270 | buf[0] = 0; | 270 | buf[0] = 0; |
271 | write(filedes[1], buf, 1); | 271 | write(filedes[1], buf, 1); |
272 | while ((n = read(fd, buf, sizeof(buf))) > 0) { | 272 | while ((n = read(fd, buf, sizeof(buf))) > 0) { |
diff --git a/miscutils/mt.c b/miscutils/mt.c index f562a91a2..f4a3be739 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c | |||
@@ -101,7 +101,7 @@ int mt_main(int argc, char **argv) | |||
101 | break; | 101 | break; |
102 | } | 102 | } |
103 | 103 | ||
104 | fd = xopen3(file, mode, 0); | 104 | fd = xopen(file, mode); |
105 | 105 | ||
106 | switch (code->value) { | 106 | switch (code->value) { |
107 | case MTTELL: | 107 | case MTTELL: |
diff --git a/miscutils/rx.c b/miscutils/rx.c index 91606ecd0..52a76bfd9 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
@@ -262,7 +262,7 @@ int rx_main(int argc, char **argv) | |||
262 | bb_show_usage(); | 262 | bb_show_usage(); |
263 | 263 | ||
264 | fn = argv[1]; | 264 | fn = argv[1]; |
265 | ttyfd = xopen3(CURRENT_TTY, O_RDWR, 0); | 265 | ttyfd = xopen(CURRENT_TTY, O_RDWR); |
266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); | 266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); |
267 | 267 | ||
268 | if (tcgetattr(ttyfd, &tty) < 0) | 268 | if (tcgetattr(ttyfd, &tty) < 0) |