]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-dump-solver.cc
merge debian/sid into debian/experimental
[apt.git] / cmdline / apt-dump-solver.cc
index aa16b127149f74fe2114e720aa23d3520498c9ea..f765234c5f8b61d5fc2a729e76d39699b277e047 100644 (file)
@@ -9,16 +9,18 @@
 // 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                                       /*{{{*/
 // ---------------------------------------------------------------------
 /* */
-bool ShowHelp() {
+static bool ShowHelp() {
 
        std::cout <<
                PACKAGE " " PACKAGE_VERSION " for " COMMON_ARCH " compiled on " __DATE__ " " __TIME__ << std::endl <<
@@ -38,6 +40,8 @@ int main(int argc,const char *argv[])                                 /*{{{*/
                ShowHelp();
                return 0;
        }
+        // we really don't need anything
+        DropPrivileges();
 
        FILE* input = fdopen(STDIN_FILENO, "r");
        FILE* output = fopen("/tmp/dump.edsp", "w");