1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-08 11:27:32 +03:00

tty-ask-password: minor modernizations

This commit is contained in:
Lennart Poettering 2015-09-23 17:04:15 +02:00
parent 3f6fd1ba65
commit 16f98462a0

View File

@ -625,15 +625,14 @@ int main(int argc, char *argv[]) {
goto finish;
if (arg_console) {
setsid();
release_terminal();
(void) setsid();
(void) release_terminal();
}
if (IN_SET(arg_action, ACTION_WATCH, ACTION_WALL))
r = watch_passwords();
else
r = show_passwords();
if (r < 0)
log_error_errno(r, "Error: %m");