summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2025-08-11 17:28:12 +0200
committerJulian Andres Klode <jak@debian.org>2025-08-11 17:28:12 +0200
commit8d9ea25bc7e908f25baee2448e80f6bbd820173f (patch)
tree7de1949286631d089f4d9299f388d70f3d764ac0 /methods
parent95ff30f3976d73b3dcfd60ab7518130252efbb79 (diff)
Release 3.1.43.1.4
Diffstat (limited to 'methods')
-rw-r--r--methods/sqv.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/methods/sqv.cc b/methods/sqv.cc
index 6c154401d..ac736731d 100644
--- a/methods/sqv.cc
+++ b/methods/sqv.cc
@@ -164,6 +164,21 @@ bool SQVMethod::VerifyGetSigners(const char *file, const char *outfile,
keyFiles.push_back(Part);
}
}
+ else
+ {
+ std::string buf;
+ for (auto k : keyFiles)
+ {
+ _error->PushToStack();
+ FileFd keyFd(k, FileFd::ReadOnly);
+ _error->RevertToStack();
+ if (keyFd.IsOpen())
+ continue;
+
+ strprintf(buf, "The key(s) in the keyring %s are ignored as the file is not readable by user executing gpgv.\n", k.c_str());
+ Warning(std::move(buf));
+ }
+ }
if (keyFiles.empty())
return _error->Error("The signatures couldn't be verified because no keyring is specified");