projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bae8ce
)
pty: fix O_CLOEXEC for TIOCGPTPEER
author
Matthijs van Duin
<matthijsvanduin@gmail.com>
Thu, 19 Jul 2018 08:43:46 +0000
(10:43 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 21 Jul 2018 07:08:47 +0000
(09:08 +0200)
It was being ignored because the flags were not passed to fd allocation.
Fixes: 54ebbfb16034 ("tty: add TIOCGPTPEER ioctl")
Signed-off-by: Matthijs van Duin <matthijsvanduin@gmail.com>
Acked-by: Aleksa Sarai <asarai@suse.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/pty.c
patch
|
blob
|
history
diff --git
a/drivers/tty/pty.c
b/drivers/tty/pty.c
index b0e2c4847a5d6a51ec70bc88e9ff74052fd1a863..678406e0948b227ab0188d938450b384e4dbae82 100644
(file)
--- a/
drivers/tty/pty.c
+++ b/
drivers/tty/pty.c
@@
-625,7
+625,7
@@
int ptm_open_peer(struct file *master, struct tty_struct *tty, int flags)
if (tty->driver != ptm_driver)
return -EIO;
- fd = get_unused_fd_flags(
0
);
+ fd = get_unused_fd_flags(
flags
);
if (fd < 0) {
retval = fd;
goto err;