X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fvconsole-setup.c;h=68ebac9ae498345d2f154907024dab6fa158eff2;hp=1be260bc2f41011b24fe78be83505a000c27426e;hb=7a41c61168632501489a4d054619b86f529a02e7;hpb=944d4c91e68508d997409008ab7acd8d6e162965 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; }