diff options
author | Samuel Thibault | 2018-02-12 12:09:40 +0100 |
---|---|---|
committer | Karel Zak | 2018-02-12 12:09:40 +0100 |
commit | 4365c8107f68a2af518a9c26bb5f64f780d54eed (patch) | |
tree | 433dd3614150cc67cdaf088a7865a69a580eb86b /login-utils | |
parent | lsblk: try device/dev to read devno (diff) | |
download | kernel-qcow2-util-linux-4365c8107f68a2af518a9c26bb5f64f780d54eed.tar.gz kernel-qcow2-util-linux-4365c8107f68a2af518a9c26bb5f64f780d54eed.tar.xz kernel-qcow2-util-linux-4365c8107f68a2af518a9c26bb5f64f780d54eed.zip |
su: build fix for the case where USE_PTY is not defined
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils')
-rw-r--r-- | login-utils/su-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
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. */ |