Merge pull request #10389 from poettering/nspawn-path-fix

nspawn $PATH execvpe() fix
This commit is contained in:
Yu Watanabe
2018-10-19 08:48:37 +09:00
committed by GitHub
3 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ static int do_execute(
alarm(DIV_ROUND_UP(timeout, USEC_PER_SEC));
STRV_FOREACH(e, envp)
if (putenv(*e) < 0)
if (putenv(*e) != 0)
return log_error_errno(errno, "Failed to set environment variable: %m");
STRV_FOREACH(path, paths) {