util: do not reset terminal in acquire_terminal()
authorLennart Poettering <lennart@poettering.net>
Thu, 8 Oct 2015 12:33:53 +0000 (14:33 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 8 Oct 2015 13:03:31 +0000 (15:03 +0200)
commit3d18b167558bde95a076b16d40f9454f169e70ba
treed83b8eb2445e593f93a8e1e60f53e648f69c969a
parent40e1f4ea7458a0a80eaf1ef356e52bfe0835412e
util: do not reset terminal in acquire_terminal()

Before, we'd always reset acquired terminals, which is not really
desired, as we expose a setting TTYReset= which is supposed to control
whether the TTY is reset or not. Previously that setting would only
enable a second resetting of the TTY, which is of course pointless...

Hence, move the implicit resetting out of acquire_terminal() and make
the callers do it if they need it.
src/basic/terminal-util.c
src/core/execute.c
src/tty-ask-password-agent/tty-ask-password-agent.c