status: Pass correct remote name when verifying
authorColin Walters <walters@verbum.org>
Thu, 4 Jan 2024 18:55:14 +0000 (13:55 -0500)
committerColin Walters <walters@verbum.org>
Thu, 4 Jan 2024 18:55:14 +0000 (13:55 -0500)
commit24bf5b7d11edeb68c4aaeb03859f060d21eb9e0f
tree04eb75c1690dfbc1e0c9a6346cf376c355f2ae69
parent9faf55699a2c261e0ea16bdae4081f3c93310867
status: Pass correct remote name when verifying

The default `ostree admin status` tries to do signature
verification, but doesn't error out if that fails.

However, an extremely longstanding bug here is that we passed
the "osname" aka stateroot instead of the remote name.  This
happens to work for e.g. Fedora Silverblue today, where they
are the same.  It doesn't work on FCOS (remote = fedora, stateroot = fedora-coreos).
src/ostree/ot-admin-builtin-status.c