projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6b180b
)
exec-util: errors are reported by non-zero, not negative by putenv()
author
Lennart Poettering
<lennart@poettering.net>
Sat, 13 Oct 2018 11:12:32 +0000
(13:12 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 18 Oct 2018 14:40:12 +0000
(16:40 +0200)
src/basic/exec-util.c
patch
|
blob
|
history
diff --git
a/src/basic/exec-util.c
b/src/basic/exec-util.c
index 32c6418482278f4ea9d6d74cb45f7f6d4c243d52..a6c020b0f8c3c8c3dec7bb5887de90792e1147c1 100644
(file)
--- a/
src/basic/exec-util.c
+++ b/
src/basic/exec-util.c
@@
-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) {