From ef94c3cc6bec87d64ca8f456de39cbf66b7486bf Mon Sep 17 00:00:00 2001 From: Robert Swiecki Date: Tue, 31 Jul 2018 22:52:03 +0200 Subject: [PATCH] config: correct way of setting pass_fd --- config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cc b/config.cc index 8aa9089..3841dc2 100644 --- 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(); -- 2.7.4