diff options
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r-- | miscutils/rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |