Blame 0001-vconsole-use-open_terminal-instead-of-open.patch
|
Lennart Poettering |
7e98ac |
From a96257af783f1d2c35a957466856e62ebf82bcad Mon Sep 17 00:00:00 2001
|
|
Lennart Poettering |
7e98ac |
From: Lennart Poettering <lennart@poettering.net>
|
|
Lennart Poettering |
7e98ac |
Date: Tue, 3 May 2011 17:58:28 +0200
|
|
Lennart Poettering |
7e98ac |
Subject: [PATCH] vconsole: use open_terminal() instead of open()
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
---
|
|
Lennart Poettering |
7e98ac |
src/vconsole-setup.c | 2 +-
|
|
Lennart Poettering |
7e98ac |
1 files changed, 1 insertions(+), 1 deletions(-)
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
diff --git a/src/vconsole-setup.c b/src/vconsole-setup.c
|
|
Lennart Poettering |
7e98ac |
index 1be260b..68ebac9 100644
|
|
Lennart Poettering |
7e98ac |
--- a/src/vconsole-setup.c
|
|
Lennart Poettering |
7e98ac |
+++ b/src/vconsole-setup.c
|
|
Lennart Poettering |
7e98ac |
@@ -176,7 +176,7 @@ int main(int argc, char **argv) {
|
|
Lennart Poettering |
7e98ac |
else
|
|
Lennart Poettering |
7e98ac |
vc = "/dev/tty0";
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
- if ((fd = open(vc, O_RDWR|O_CLOEXEC)) < 0) {
|
|
Lennart Poettering |
7e98ac |
+ if ((fd = open_terminal(vc, O_RDWR|O_CLOEXEC)) < 0) {
|
|
Lennart Poettering |
7e98ac |
log_error("Failed to open %s: %m", vc);
|
|
Lennart Poettering |
7e98ac |
goto finish;
|
|
Lennart Poettering |
7e98ac |
}
|
|
Lennart Poettering |
7e98ac |
--
|
|
Lennart Poettering |
7e98ac |
1.7.5.2
|
|
Lennart Poettering |
7e98ac |
|