mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
tty-ask-password-agent: make code a tiny bit shorter
This commit is contained in:
parent
372771c8d3
commit
149bc84aac
@ -363,7 +363,7 @@ static int parse_password(const char *filename, char **wall) {
|
||||
int tty_fd = -1;
|
||||
|
||||
if (arg_console) {
|
||||
const char *con = arg_device ? arg_device : "/dev/console";
|
||||
const char *con = arg_device ?: "/dev/console";
|
||||
|
||||
tty_fd = acquire_terminal(con, false, false, false, USEC_INFINITY);
|
||||
if (tty_fd < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user