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:
6af9565
)
config: correct way of setting pass_fd
author
Robert Swiecki
<robert@swiecki.net>
Tue, 31 Jul 2018 20:52:03 +0000
(22:52 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Tue, 31 Jul 2018 20:52:03 +0000
(22:52 +0200)
config.cc
patch
|
blob
|
history
diff --git
a/config.cc
b/config.cc
index
8aa9089
..
3841dc2
100644
(file)
--- a/
config.cc
+++ b/
config.cc
@@
-141,7
+141,7
@@
static bool configParseInternal(nsjconf_t* nsjconf, const nsjail::NsJailConfig&
nsjconf->skip_setsid = njc.skip_setsid();
for (ssize_t i = 0; i < njc.pass_fd_size(); i++) {
- nsjconf->openfds.push_back(
i
);
+ nsjconf->openfds.push_back(
njc.pass_fd(i)
);
}
nsjconf->stderr_to_null = njc.stderr_to_null();