From f2d4537ffb5c0ebdbdb37bc031940f8e8c0631c6 Mon Sep 17 00:00:00 2001 From: Rafael Fonseca Date: Thu, 13 Dec 2018 16:43:35 +0100 Subject: [PATCH] admin/status: Correctly check GPG signature Closes: #1770 Closes: #1787 Approved by: jlebon --- src/ostree/ot-admin-builtin-status.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ostree/ot-admin-builtin-status.c b/src/ostree/ot-admin-builtin-status.c index ca165f45..e625a927 100644 --- a/src/ostree/ot-admin-builtin-status.c +++ b/src/ostree/ot-admin-builtin-status.c @@ -141,10 +141,11 @@ deployment_print_status (OstreeSysroot *sysroot, g_autoptr(GString) output_buffer = g_string_sized_new (256); /* Print any digital signatures on this commit. */ + const char *osname = ostree_deployment_get_osname (deployment); g_autoptr(GError) local_error = NULL; g_autoptr(OstreeGpgVerifyResult) result = - ostree_repo_verify_commit_ext (repo, ref, NULL, NULL, - cancellable, &local_error); + ostree_repo_verify_commit_for_remote (repo, ref, osname, + cancellable, &local_error); /* G_IO_ERROR_NOT_FOUND just means the commit is not signed. */ if (g_error_matches (local_error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND))