vmspawn: do not set vt220

We do not let qemu do terminal stuff, hence no point in setting any
TERM.
This commit is contained in:
Lennart Poettering
2025-07-11 18:17:04 +02:00
parent f820b27565
commit 12d1f44681
+2 -7
View File
@@ -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;
}