aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/stty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index baa1ec2da..cb9b18361 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -1295,7 +1295,7 @@ int stty_main(int argc, char **argv)
if (file_name) {
int fd, fdflags;
G.device_name = file_name;
- fd = xopen(G.device_name, O_RDONLY | O_NONBLOCK);
+ fd = xopen_nonblocking(G.device_name);
if (fd != STDIN_FILENO) {
dup2(fd, STDIN_FILENO);
close(fd);