summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 097d7f779f..cd31bd42cc 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -2265,7 +2265,7 @@ static int spawn_getent(const char *database, const char *key, pid_t *rpid) {
close_all_fds(NULL, 0);
execle("/usr/bin/getent", "getenv", database, key, NULL, &empty_env);
- execle("/usr/getent", "getenv", database, key, NULL, &empty_env);
+ execle("/bin/getent", "getenv", database, key, NULL, &empty_env);
_exit(EXIT_FAILURE);
}