[systemd-commits] src/vconsole-setup.c

Lennart Poettering lennart at kemper.freedesktop.org
Tue May 3 08:58:40 PDT 2011


 src/vconsole-setup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a96257af783f1d2c35a957466856e62ebf82bcad
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue May 3 17:58:28 2011 +0200

    vconsole: use open_terminal() instead of open()

diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c
index 1be260b..68ebac9 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;
         }



More information about the systemd-commits mailing list