1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

tty-ask-pw-agent: use right array

No point in copying the array if we are not going to use the copy.

Prompted by: https://github.com/systemd/systemd/pull/12183#issuecomment-479591781
This commit is contained in:
Lennart Poettering 2019-04-03 20:10:19 +02:00 committed by Yu Watanabe
parent fc40bfa7e2
commit 65e5d6934e

View File

@ -736,7 +736,7 @@ static int ask_on_this_console(const char *tty, pid_t *ret_pid, char *argv[]) {
free_and_replace(*i, k);
}
execv(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, argv);
execv(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, arguments);
_exit(EXIT_FAILURE);
}