]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-dump-solver.cc
Merge branch 'debian/sid' into debian/experimental
[apt.git] / cmdline / apt-dump-solver.cc
index c26cdc70a530592a920aaad4d47db7ecd3f2acf3..424764b3c35c5461e9ec3f8bf963f3a91480b0b6 100644 (file)
@@ -9,10 +9,12 @@
 // Include Files                                                       /*{{{*/
 #include <apt-pkg/edsp.h>
 
-#include <config.h>
-
+#include <string.h>
+#include <unistd.h>
 #include <cstdio>
 #include <iostream>
+
+#include <config.h>
                                                                        /*}}}*/
 
 // ShowHelp - Show a help screen                                       /*{{{*/
@@ -38,6 +40,8 @@ int main(int argc,const char *argv[])                                 /*{{{*/
                ShowHelp();
                return 0;
        }
+        // we really don't need anything
+        DropPrivs();
 
        FILE* input = fdopen(STDIN_FILENO, "r");
        FILE* output = fopen("/tmp/dump.edsp", "w");