mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
tty-ask-password: minor modernizations
This commit is contained in:
parent
3f6fd1ba65
commit
16f98462a0
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user