From: Samuel Thibault Date: Mon, 12 Feb 2018 11:09:40 +0000 (+0100) Subject: su: build fix for the case where USE_PTY is not defined X-Git-Tag: v2.32-rc1~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4365c8107f68a2af518a9c26bb5f64f780d54eed;p=thirdparty%2Futil-linux.git su: build fix for the case where USE_PTY is not defined Signed-off-by: Karel Zak --- diff --git a/login-utils/su-common.c b/login-utils/su-common.c index afd75a1f1a..8105e6ccda 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. */