]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: build fix for the case where USE_PTY is not defined
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 12 Feb 2018 11:09:40 +0000 (12:09 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Feb 2018 11:09:40 +0000 (12:09 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c

index afd75a1f1a9a0ec29cc89c71f6c0f4bea4038bf6..8105e6ccda16776920654cb998ac6b69c4334d85 100644 (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.  */