summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2018-09-28 08:34:18 -1000
committerSam Bingner <sam@bingner.com>2020-07-17 00:22:23 -1000
commitf3e34959724ba67ea3bed5a972d0522cc7a236f0 (patch)
tree0a797076522707eed93ad136cde10ff7d85a2d2e
parent8c31572b1d8ccf372031c9885e4e66415a0241ae (diff)
Remove errors that we don't need
-rw-r--r--apt-pkg/acquire.cc1
-rw-r--r--methods/gpgv.cc2
-rw-r--r--methods/http.cc2
3 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc
index b0c96f2d7..086cb378c 100644
--- a/apt-pkg/acquire.cc
+++ b/apt-pkg/acquire.cc
@@ -627,7 +627,6 @@ static void CheckDropPrivsMustBeDisabled(pkgAcquire const &Fetcher)
struct passwd const * const pw = getpwnam(SandboxUser.c_str());
if (pw == NULL)
{
- _error->Warning(_("No sandbox user '%s' on the system, can not drop privileges"), SandboxUser.c_str());
_config->Set("APT::Sandbox::User", "");
return;
}
diff --git a/methods/gpgv.cc b/methods/gpgv.cc
index f66e3356f..91417f308 100644
--- a/methods/gpgv.cc
+++ b/methods/gpgv.cc
@@ -68,7 +68,7 @@ struct Digest {
static constexpr Digest Digests[] = {
{Digest::State::Untrusted, "Invalid digest"},
{Digest::State::Untrusted, "MD5"},
- {Digest::State::Untrusted, "SHA1"},
+ {Digest::State::Trusted, "SHA1"},
{Digest::State::Untrusted, "RIPE-MD/160"},
{Digest::State::Trusted, "Reserved digest"},
{Digest::State::Trusted, "Reserved digest"},
diff --git a/methods/http.cc b/methods/http.cc
index d1f6026a3..647b35c6b 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -601,7 +601,7 @@ int main(int, const char *argv[])
if (UniqueID_ == NULL)
if (void *lockdown = lockdown_connect()) {
- UniqueID_ = lockdown_copy_value(lockdown, NULL, kLockdownUniqueDeviceIDKey);
+ UniqueID_ = (CFStringRef)lockdown_copy_value(lockdown, NULL, kLockdownUniqueDeviceIDKey);
lockdown_disconnect(lockdown);
}