summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nspawn/nspawn.c4
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);
}