diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-11-15 23:49:02 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-11-15 23:49:02 +0100 |
commit | e3aa71c38cbecb24e6333411ee19814796a5b1d0 (patch) | |
tree | 5ae80b4fcbf3bc4f93e3905cecab2fc40f1cb1da /src/service.c | |
parent | 96a8cbfae1b37cf0a9c0591bfef93f9de1561bc4 (diff) |
exec: automatically determine right TERM= setting based on tty name
Diffstat (limited to 'src/service.c')
-rw-r--r-- | src/service.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/service.c b/src/service.c index 184ddf9143..0234151700 100644 --- a/src/service.c +++ b/src/service.c @@ -1609,16 +1609,6 @@ static int service_spawn( goto fail; } -#ifdef HAVE_SYSV_COMPAT - /* Make sure we set TERM=linux for SysV scripts, since some - * require it to be set from the kernel */ - if (s->sysv_path && !strv_env_get(s->meta.manager->environment, "TERM")) - if (!(our_env[n_env++] = strdup("TERM=linux"))) { - r = -ENOMEM; - goto fail; - } -#endif - if (!(final_env = strv_env_merge(2, s->meta.manager->environment, our_env, |