su: build fix for the case where USE_PTY is not defined

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Samuel Thibault 2018-02-12 12:09:40 +01:00 committed by Karel Zak
parent d51f05bfec
commit 4365c8107f
1 changed files with 2 additions and 2 deletions

View File

@ -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. */