From 74bc3bdc2096e6710c13052fa848649c9ed1dfa5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 19 May 2011 18:10:34 +0200 Subject: [PATCH] util: use open_terminal() in chvt() too --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 14aa1f97..021be625 100644 --- a/src/util.c +++ b/src/util.c @@ -2141,7 +2141,7 @@ bool fstype_is_network(const char *fstype) { int chvt(int vt) { int fd, r = 0; - if ((fd = open("/dev/tty0", O_RDWR|O_NOCTTY|O_CLOEXEC)) < 0) + if ((fd = open_terminal("/dev/tty0", O_RDWR|O_NOCTTY|O_CLOEXEC)) < 0) return -errno; if (vt < 0) { -- 2.39.5