From 98e0742024d4c13c08a6076b3d119c250e7d0118 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sun, 8 Oct 2017 14:09:47 +0200 Subject: openpty: close slave pty fd on error When openpty() failed only the master fd was closed so far. Let's close the slave fd as well. Also, let's unify the error handling. Signed-off-by: Christian Brauner --- ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index deec63d1a8..e1e98adf1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2017-10-08 Christian Brauner + + * login/openpty.c (openpty): Close slave pty file descriptor on error. + 2017-10-06 Joseph Myers * sysdeps/ieee754/ldbl-128/s_fma.c: Include . -- cgit v1.2.3