diff options
author | Michael Vogt <mvo@ubuntu.com> | 2014-09-25 12:33:26 +0200 |
---|---|---|
committer | Michael Vogt <mvo@ubuntu.com> | 2014-09-25 12:33:26 +0200 |
commit | e31a89e668596ea86c8f3a08429cd2f48286e734 (patch) | |
tree | 417a694cc8dea17a352c2534f6a9e1f7b23178c6 /methods/http_main.cc | |
parent | 03bfbc965443393b92b2d6d82613472fa3a5067f (diff) | |
parent | 47d278dc7184606f751d015689e0c49eccde4547 (diff) |
Merge remote-tracking branch 'upstream/debian/experimental' into feature/acq-trans
Diffstat (limited to 'methods/http_main.cc')
-rw-r--r-- | methods/http_main.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/methods/http_main.cc b/methods/http_main.cc index 3b346a514..f21a5709c 100644 --- a/methods/http_main.cc +++ b/methods/http_main.cc @@ -1,5 +1,6 @@ #include <config.h> - +#include <apt-pkg/fileutl.h> +#include <apt-pkg/error.h> #include <signal.h> #include "http.h" @@ -13,5 +14,7 @@ int main() signal(SIGPIPE, SIG_IGN); HttpMethod Mth; + + Mth.DropPrivsOrDie(); return Mth.Loop(); } |