From: Lennart Poettering Date: Fri, 11 Jul 2025 07:05:29 +0000 (+0200) Subject: vmspawn: do not set vt220 X-Git-Tag: v258-rc1~79^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12d1f44681378c90def1395b3d4ad947e4ebfa83;p=thirdparty%2Fsystemd.git vmspawn: do not set vt220 We do not let qemu do terminal stuff, hence no point in setting any TERM. --- diff --git a/src/vmspawn/vmspawn.c b/src/vmspawn/vmspawn.c index 6889734e9c7..c5fe0d54d76 100644 --- a/src/vmspawn/vmspawn.c +++ b/src/vmspawn/vmspawn.c @@ -1712,13 +1712,8 @@ static int datagram_read_cmdline_and_exec(int _fd /* always taking possession, e _noreturn_ static void child(int cmdline_fd) { assert(cmdline_fd >= 0); - /* set TERM and LANG if they are missing */ - if (setenv("TERM", "vt220", 0) < 0) { - log_oom(); - goto fail; - } - - if (setenv("LANG", "C.UTF-8", 0) < 0) { + /* set LANG if they are missing */ + if (setenv("LANG", "C.UTF-8", /* override= */ 0) < 0) { log_oom(); goto fail; }