]> git.saurik.com Git - apt.git/blobdiff - methods/http_main.cc
DropPrivs: Move the re-set uid/gid thing to the end of the function
[apt.git] / methods / http_main.cc
index 2ca91bfc91699ffaecc787ab70e8749adaaefa6b..d7724701a761017dcf4e7ff2bf500715868c0f41 100644 (file)
@@ -1,14 +1,9 @@
 #include <config.h>
-
 #include <apt-pkg/fileutl.h>
-#include <apt-pkg/acquire-method.h>
 #include <signal.h>
 
-#include "connect.h"
-#include "rfc2553emu.h"
 #include "http.h"
 
-
 int main()
 {
    setlocale(LC_ALL, "");
@@ -18,5 +13,7 @@ int main()
    signal(SIGPIPE, SIG_IGN);
 
    HttpMethod Mth;
+
+   Mth.DropPrivsOrDie();
    return Mth.Loop();
 }