vconsole: use open_terminal() instead of open()

This commit is contained in:
Lennart Poettering
2011-05-03 17:58:28 +02:00
parent 4a058a7519
commit a96257af78
+1 -1
View 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;
}