From 8d9ea25bc7e908f25baee2448e80f6bbd820173f Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 11 Aug 2025 17:28:12 +0200 Subject: Release 3.1.4 --- methods/sqv.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'methods/sqv.cc') 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"); -- cgit v1.2.3-70-g09d2