]> git.saurik.com Git - apt.git/blobdiff - methods/https.cc
test if TMPDIR is accessible before using
[apt.git] / methods / https.cc
index 16d564b34d79acc9608889cb7206850881bb42b4..366148e199678ccb112e5e5b6952585396f44dc7 100644 (file)
                                                                        /*}}}*/
 using namespace std;
 
+bool HttpsMethod::Configuration(std::string Message)
+{
+   if (pkgAcqMethod::Configuration(Message) == false)
+      return false;
+
+   DropPrivsOrDie();
+
+   return true;
+}
+
 size_t
 HttpsMethod::parse_header(void *buffer, size_t size, size_t nmemb, void *userp)
 {
@@ -452,8 +462,6 @@ int main()
    HttpsMethod Mth;
    curl_global_init(CURL_GLOBAL_SSL) ;
 
-   Mth.DropPrivsOrDie();
-
    return Mth.Run();
 }