summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-05-03 17:58:28 +0200
committerLennart Poettering <lennart@poettering.net>2011-05-03 17:58:28 +0200
commita96257af783f1d2c35a957466856e62ebf82bcad (patch)
tree4b7f91b1b1324fa2d9fb9121226ee2426b1eb7c7
parent4a058a7519dcf60a3515d8d467a73ff691944956 (diff)
vconsole: use open_terminal() instead of open()
-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;
}