diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-07-27 15:25:55 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2016-08-03 14:52:16 +0200 |
commit | 6af760f3b263d3ddfa80a4168ad0a0c5e59bae1f (patch) | |
tree | 2869ab52f793174335ed7f4c33c5b58980f4f683 /src/basic | |
parent | 43992e57e0bf479a583e90fa2e23f0f1aa2fc2fb (diff) |
core: inherit TERM from PID 1 for all services started on /dev/console
This way, invoking nspawn from a shell in the best case inherits the TERM
setting all the way down into the login shell spawned in the container.
Fixes: #3697
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/terminal-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/terminal-util.c b/src/basic/terminal-util.c index df56d85317..f0a46c48cf 100644 --- a/src/basic/terminal-util.c +++ b/src/basic/terminal-util.c @@ -785,7 +785,7 @@ bool tty_is_vc_resolve(const char *tty) { } const char *default_term_for_tty(const char *tty) { - return tty && tty_is_vc_resolve(tty) ? "TERM=linux" : "TERM=vt220"; + return tty && tty_is_vc_resolve(tty) ? "linux" : "vt220"; } int fd_columns(int fd) { |