X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8e4c3f0a42664b8c37cc2e0de285849fbf118e11..84b286f65c55e21b4734a17474f1cba464cbbd9c:/methods/gpgv.cc diff --git a/methods/gpgv.cc b/methods/gpgv.cc index fe8bac6c9..4071cbac6 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -1,20 +1,22 @@ #include -#include #include -#include -#include -#include #include +#include #include +#include +#include -#include -#include -#include +#include #include +#include +#include +#include +#include #include +#include #include -#include +#include #include #include @@ -152,6 +154,7 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile, } } fclose(pipein); + free(buffer); int status; waitpid(pid, &status, 0); @@ -259,8 +262,10 @@ bool GPGVMethod::Fetch(FetchItem *Itm) int main() { setlocale(LC_ALL, ""); - + GPGVMethod Mth; + Mth.DropPrivsOrDie(); + return Mth.Run(); }