projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7dd18c
)
cmdline/env: don't set empty envvars
author
Robert Swiecki
<robert@swiecki.net>
Sun, 28 Oct 2018 20:03:10 +0000
(21:03 +0100)
committer
Robert Swiecki
<robert@swiecki.net>
Sun, 28 Oct 2018 20:03:10 +0000
(21:03 +0100)
cmdline.cc
patch
|
blob
|
history
diff --git
a/cmdline.cc
b/cmdline.cc
index
0da4c2e
..
46bd10d
100644
(file)
--- a/
cmdline.cc
+++ b/
cmdline.cc
@@
-194,7
+194,8
@@
void addEnv(nsjconf_t* nsjconf, const std::string& env) {
}
char* e = getenv(env.c_str());
if (!e) {
- nsjconf->envs.push_back(env);
+ LOG_W("Requested to use the '%s' envvar, but it's not set. It'll be ignored",
+ env.c_str());
return;
}
nsjconf->envs.push_back(std::string(env).append("=").append(e));