]> git.saurik.com Git - apt.git/blobdiff - methods/ftp.cc
debian/apt.postinst: chown _apt:root /etc/apt/auth.conf
[apt.git] / methods / ftp.cc
index 5b739ea06f5ea292aa5f922bed2860a9f3b9a1d8..0504e58724f253025f1191282d2e0803af59b1f9 100644 (file)
@@ -988,6 +988,10 @@ bool FtpMethod::Configuration(string Message)
       return false;
    
    TimeOut = _config->FindI("Acquire::Ftp::Timeout",TimeOut);
+
+   // no more active ftp, sorry
+   DropPrivsOrDie();
+
    return true;
 }
                                                                        /*}}}*/
@@ -1141,8 +1145,5 @@ int main(int, const char *argv[])
    
    FtpMethod Mth;
 
-   // no more active ftp, sorry
-   Mth.DropPrivsOrDie();
-   
    return Mth.Run();
 }