]> git.ipfire.org Git - thirdparty/util-linux.git/commit
su: fix --pty terminal initialization
authorKarel Zak <kzak@redhat.com>
Wed, 6 Mar 2019 10:54:51 +0000 (11:54 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 6 Mar 2019 11:01:18 +0000 (12:01 +0100)
commit282ca3d87b4ab2e3f077c959fd5e0f87980120d6
treecce5ab6512597f2b9f5eaee112d9e2695f73aeb9
parent2648be66d2a91a2d884fdab0de58a883d7d54ce6
su: fix --pty terminal initialization

* use proper winsize rather than uninitialized variable (Oops...)

* set the current terminal to the raw mode

* disable ECHO for non-terminal execution to be compatible with
  non-pty output

Addresses: https://github.com/karelzak/util-linux/issues/767
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/su-common.c