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 f723c1676..9b9f6afd4 100644 --- a/miscutils/rx.c +++ b/miscutils/rx.c | |||
@@ -263,7 +263,7 @@ int rx_main(int argc, char **argv) | |||
263 | 263 | ||
264 | fn = argv[1]; | 264 | fn = argv[1]; |
265 | ttyfd = xopen(CURRENT_TTY, O_RDWR); | 265 | ttyfd = xopen(CURRENT_TTY, O_RDWR); |
266 | filefd = xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666); | 266 | filefd = xopen(fn, O_RDWR|O_CREAT|O_TRUNC); |
267 | 267 | ||
268 | if (tcgetattr(ttyfd, &tty) < 0) | 268 | if (tcgetattr(ttyfd, &tty) < 0) |
269 | bb_perror_msg_and_die("tcgetattr"); | 269 | bb_perror_msg_and_die("tcgetattr"); |