[systemd-devel] [PATCH] nspawn: fix argv[0] for getent
Lennart Poettering
lennart at poettering.net
Tue Mar 11 09:46:07 PDT 2014
On Tue, 11.03.14 18:00, Mantas Mikulėnas (grawity at gmail.com) wrote:
Applied! Thanks!
> ---
> src/nspawn/nspawn.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
> index cd31bd4..489dbde 100644
> --- a/src/nspawn/nspawn.c
> +++ b/src/nspawn/nspawn.c
> @@ -2264,8 +2264,8 @@ static int spawn_getent(const char *database, const char *key, pid_t *rpid) {
> reset_all_signal_handlers();
> close_all_fds(NULL, 0);
>
> - execle("/usr/bin/getent", "getenv", database, key, NULL, &empty_env);
> - execle("/bin/getent", "getenv", database, key, NULL, &empty_env);
> + execle("/usr/bin/getent", "getent", database, key, NULL, &empty_env);
> + execle("/bin/getent", "getent", database, key, NULL, &empty_env);
> _exit(EXIT_FAILURE);
> }
>
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list