terminal-util: return correct error in chvt()

This commit is contained in:
Lennart Poettering
2024-07-19 11:41:42 +02:00
parent 9a5e421af5
commit 4c8c499e2c
+1 -1
View File
@@ -76,7 +76,7 @@ int chvt(int vt) {
fd = open_terminal("/dev/tty0", O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
if (fd < 0)
return -errno;
return fd;
if (vt <= 0) {
int tiocl[2] = {