tty-ask-password-agent: make code a tiny bit shorter

This commit is contained in:
Lennart Poettering 2018-02-13 19:17:17 +01:00
parent 372771c8d3
commit 149bc84aac
1 changed files with 1 additions and 1 deletions

View File

@ -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)