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:
parent
d51f05bfec
commit
4365c8107f
|
@ -1416,10 +1416,10 @@ int su_main(int argc, char **argv, int mode)
|
||||||
DBG(MISC, ul_debug("call setsid()"));
|
DBG(MISC, ul_debug("call setsid()"));
|
||||||
setsid();
|
setsid();
|
||||||
}
|
}
|
||||||
|
#ifdef USE_PTY
|
||||||
if (su->pty)
|
if (su->pty)
|
||||||
pty_init_slave(su);
|
pty_init_slave(su);
|
||||||
|
#endif
|
||||||
/* Set environment after pam_open_session, which may put KRB5CCNAME
|
/* Set environment after pam_open_session, which may put KRB5CCNAME
|
||||||
into the pam_env, etc. */
|
into the pam_env, etc. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue