summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/proxy.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2017-10-22 19:02:53 +0200
committerJulian Andres Klode <jak@debian.org>2017-10-22 19:10:57 +0200
commit0934b6b023b46cd0e2e5fa55a23a054b2feeb618 (patch)
tree3f3e426099d9d62419084843d06a7c6bb64bc85e /apt-pkg/contrib/proxy.cc
parent1a76517470ebc2dd3f96e39ebe6f3706d6dd78da (diff)
Run the ProxyAutoDetect script in the sandbox again
The previous change moved running the proxy detection program from the method to the main process, so it runs as root and not as _apt. This brings it back into the sandbox. Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/contrib/proxy.cc')
-rw-r--r--apt-pkg/contrib/proxy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/proxy.cc b/apt-pkg/contrib/proxy.cc
index 86582e1aa..6dc3b0686 100644
--- a/apt-pkg/contrib/proxy.cc
+++ b/apt-pkg/contrib/proxy.cc
@@ -60,7 +60,7 @@ bool AutoDetectProxy(URI &URL)
Args.push_back(nullptr);
FileFd PipeFd;
pid_t Child;
- if(Popen(&Args[0], PipeFd, Child, FileFd::ReadOnly, false) == false)
+ if (Popen(&Args[0], PipeFd, Child, FileFd::ReadOnly, false, true) == false)
return _error->Error("ProxyAutoDetect command '%s' failed!", AutoDetectProxyCmd.c_str());
char buf[512];
bool const goodread = PipeFd.ReadLine(buf, sizeof(buf)) != nullptr;