From: Lennart Poettering Date: Thu, 19 May 2011 16:10:34 +0000 (+0200) Subject: util: use open_terminal() in chvt() too X-Git-Tag: v27~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74bc3bdc2096e6710c13052fa848649c9ed1dfa5;p=systemd util: use open_terminal() in chvt() too --- 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) {