diff options
author | Mantas Mikulėnas <grawity@gmail.com> | 2014-03-11 18:00:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-03-11 17:45:20 +0100 |
commit | 4de82926892eb1636d0a25cf1e4ab15cab6a6099 (patch) | |
tree | 08dbd7b2ae854afd31c1ec914a728e3c9d6a70f2 | |
parent | a07f961e98456714e7516c75041d5150d8641776 (diff) |
nspawn: fix argv[0] for getent
-rw-r--r-- | src/nspawn/nspawn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 1051b922c9..b2c974d970 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -2275,8 +2275,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); } |