Skip to content

Commit

Permalink
nspawn: fix argv[0] for getent
Browse files Browse the repository at this point in the history
  • Loading branch information
grawity authored and poettering committed Mar 11, 2014
1 parent a07f961 commit 4de8292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nspawn/nspawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4de8292

Please sign in to comment.