]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-method.cc
releasing package apt version 1.1~exp3
[apt.git] / apt-pkg / acquire-method.cc
index e4a937d1dd6de8b363998a43b24abaf48e3a2a0a..82f2fb3ce091e51c9e11afe88f21bedc60bef096 100644 (file)
@@ -118,6 +118,18 @@ void pkgAcqMethod::Fail(string Err,bool Transient)
 
    std::cout << "\n" << std::flush;
 }
+                                                                       /*}}}*/
+// AcqMethod::DropPrivsOrDie - Drop privileges or die          /*{{{*/
+// ---------------------------------------------------------------------
+/* */
+void pkgAcqMethod::DropPrivsOrDie()
+{
+   if (!DropPrivs()) {
+      Fail(false);
+      exit(112);       /* call the european emergency number */
+   }
+}
+
                                                                        /*}}}*/
 // AcqMethod::URIStart - Indicate a download is starting               /*{{{*/
 // ---------------------------------------------------------------------