From: Lennart Poettering Date: Tue, 3 May 2011 15:58:28 +0000 (+0200) Subject: vconsole: use open_terminal() instead of open() X-Git-Tag: v27~24 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=a96257af783f1d2c35a957466856e62ebf82bcad;ds=sidebyside vconsole: use open_terminal() instead of open() --- diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c index 1be260bc2..68ebac9ae 100644 --- a/src/vconsole-setup.c +++ b/src/vconsole-setup.c @@ -176,7 +176,7 @@ int main(int argc, char **argv) { else vc = "/dev/tty0"; - if ((fd = open(vc, O_RDWR|O_CLOEXEC)) < 0) { + if ((fd = open_terminal(vc, O_RDWR|O_CLOEXEC)) < 0) { log_error("Failed to open %s: %m", vc); goto finish; }