chiark / gitweb /
vconsole: use open_terminal() instead of open()
authorLennart Poettering <lennart@poettering.net>
Tue, 3 May 2011 15:58:28 +0000 (17:58 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 May 2011 15:58:28 +0000 (17:58 +0200)
src/vconsole-setup.c

index 1be260b..68ebac9 100644 (file)
@@ -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;
         }