]> git.saurik.com Git - apt.git/blobdiff - cmdline/apt-dump-solver.cc
more explicit MarkRequired algorithm code
[apt.git] / cmdline / apt-dump-solver.cc
index c6d98cd97dec63208f6f8ff0a853bbaf5b56d5b8..e94021fcf1a827bcc567abab42a15119ba746b98 100644 (file)
@@ -107,6 +107,8 @@ int main(int argc,const char *argv[])                                       /*{{{*/
 
       Solver = ExecFork();
       if (Solver == 0) {
+        _config->Set("APT::Sandbox::User", _config->Find("APT::Solver::RunAsUser", _config->Find("APT::Sandbox::User")));
+        DropPrivileges();
         dup2(external[0], STDIN_FILENO);
         execv(CmdL.FileList[1], const_cast<char**>(CmdL.FileList + 1));
         std::cerr << "Failed to execute  '" << CmdL.FileList[1] << "'!" << std::endl;