chiark / gitweb /
nspawn: fix getent fallback
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 02:08:54 +0000 (03:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Mar 2014 02:08:54 +0000 (03:08 +0100)
src/nspawn/nspawn.c

index 097d7f7..cd31bd4 100644 (file)
@@ -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);
         }