X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/ae99ce2e3cadb07c80b89ab2afc804875b1026c5..4f51a496d56807c73586220dd736173d7783c8b3:/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(); }