mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-10-03 23:38:39 +00:00
vconsole: use open_terminal() instead of open()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user