]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
guard ABI changes for LFS in apt-inst
[apt.git] / methods / http.cc
index f8faa0cf8cbfff41be3a4867c3cc26936aa97a0b..a5de13511bf3ced8f7920474ab2fd5f45393602e 100644 (file)
@@ -657,6 +657,7 @@ bool HttpServerState::Go(bool ToFile, FileFd * const File)
 
    if (MaximumSize > 0 && File && File->Tell() > MaximumSize)
    {
+      Owner->SetFailReason("MaximumSizeExceeded");
       return _error->Error("Writing more data than expected (%llu > %llu)",
                            File->Tell(), MaximumSize);
    }
@@ -769,6 +770,8 @@ bool HttpMethod::Configuration(string Message)
    if (ServerMethod::Configuration(Message) == false)
       return false;
 
+   DropPrivsOrDie();
+
    AllowRedirect = _config->FindB("Acquire::http::AllowRedirect",true);
    PipelineDepth = _config->FindI("Acquire::http::Pipeline-Depth",
                                  PipelineDepth);