From 4365c8107f68a2af518a9c26bb5f64f780d54eed Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 12 Feb 2018 12:09:40 +0100 Subject: su: build fix for the case where USE_PTY is not defined Signed-off-by: Karel Zak --- login-utils/su-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'login-utils') diff --git a/login-utils/su-common.c b/login-utils/su-common.c index afd75a1f1..8105e6ccd 100644 --- a/login-utils/su-common.c +++ b/login-utils/su-common.c @@ -1416,10 +1416,10 @@ int su_main(int argc, char **argv, int mode) DBG(MISC, ul_debug("call setsid()")); setsid(); } - +#ifdef USE_PTY if (su->pty) pty_init_slave(su); - +#endif /* Set environment after pam_open_session, which may put KRB5CCNAME into the pam_env, etc. */ -- cgit v1.2.3-55-g7522