mirror of
https://github.com/systemd/systemd.git
synced 2025-01-13 17:18:18 +03:00
vconsole: use open_terminal() instead of open()
This commit is contained in:
parent
4a058a7519
commit
a96257af78
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user