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:
parent
3f6fd1ba65
commit
16f98462a0
@ -625,15 +625,14 @@ int main(int argc, char *argv[]) {
|
|||||||
goto finish;
|
goto finish;
|
||||||
|
|
||||||
if (arg_console) {
|
if (arg_console) {
|
||||||
setsid();
|
(void) setsid();
|
||||||
release_terminal();
|
(void) release_terminal();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (IN_SET(arg_action, ACTION_WATCH, ACTION_WALL))
|
if (IN_SET(arg_action, ACTION_WATCH, ACTION_WALL))
|
||||||
r = watch_passwords();
|
r = watch_passwords();
|
||||||
else
|
else
|
||||||
r = show_passwords();
|
r = show_passwords();
|
||||||
|
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
log_error_errno(r, "Error: %m");
|
log_error_errno(r, "Error: %m");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user