From a7c7ba0eb1a5669935024db13883b1ae2d9ff007 Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Sun, 21 Oct 2018 14:57:16 +0300 Subject: [PATCH] Add missing #ifndef OMIT_UTMP over pty_utmp_helper_pipe closing --- unix/uxpty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/unix/uxpty.c b/unix/uxpty.c index d0fc2798..b3fe0f83 100644 --- a/unix/uxpty.c +++ b/unix/uxpty.c @@ -887,10 +887,12 @@ Backend *pty_backend_create( /* If somehow we've got a pty master already and don't * need it, throw it away! */ close(pty->master_fd); +#ifndef OMIT_UTMP if (pty_utmp_helper_pipe >= 0) { close(pty_utmp_helper_pipe); /* don't need this either */ pty_utmp_helper_pipe = -1; } +#endif }