summaryrefslogtreecommitdiff
path: root/src/vconsole-setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vconsole-setup.c')
-rw-r--r--src/vconsole-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c
index 1be260bc2f..68ebac9ae4 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;
}