summaryrefslogtreecommitdiff
path: root/src/core/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-07-27 15:25:55 +0200
committerLennart Poettering <lennart@poettering.net>2016-08-03 14:52:16 +0200
commit6af760f3b263d3ddfa80a4168ad0a0c5e59bae1f (patch)
tree2869ab52f793174335ed7f4c33c5b58980f4f683 /src/core/main.c
parent43992e57e0bf479a583e90fa2e23f0f1aa2fc2fb (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/core/main.c')
-rw-r--r--src/core/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/main.c b/src/core/main.c
index c46d886653..094bbef964 100644
--- a/src/core/main.c
+++ b/src/core/main.c
@@ -1318,7 +1318,7 @@ static int fixup_environment(void) {
return r;
if (r == 0) {
- term = strdup(default_term_for_tty("/dev/console") + 5);
+ term = strdup(default_term_for_tty("/dev/console"));
if (!term)
return -ENOMEM;
}