exec-util: errors are reported by non-zero, not negative by putenv()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user