aboutsummaryrefslogtreecommitdiff
path: root/coreutils/stty.c
diff options
context:
space:
mode:
Diffstat (limited to 'coreutils/stty.c')
-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)
1295 if (file_name) { 1295 if (file_name) {
1296 int fd, fdflags; 1296 int fd, fdflags;
1297 G.device_name = file_name; 1297 G.device_name = file_name;
1298 fd = xopen(G.device_name, O_RDONLY | O_NONBLOCK); 1298 fd = xopen_nonblocking(G.device_name);
1299 if (fd != STDIN_FILENO) { 1299 if (fd != STDIN_FILENO) {
1300 dup2(fd, STDIN_FILENO); 1300 dup2(fd, STDIN_FILENO);
1301 close(fd); 1301 close(fd);