Skip to content

Commit

Permalink
Merge pull request #3244 from alexlarsson/fix-fsverity-supported
Browse files Browse the repository at this point in the history
Fix _ostree_ensure_fsverity reporting of supports in early exit
  • Loading branch information
jmarrero authored May 15, 2024
2 parents 92f2abc + 083eacd commit 664116f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libostree/ostree-repo-verity.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ _ostree_ensure_fsverity (OstreeRepo *self, gboolean allow_enoent, int dirfd, con
struct stat buf;
gboolean supported;

if (supported_out)
*supported_out = TRUE;

if (fstatat (dirfd, path, &buf, AT_SYMLINK_NOFOLLOW) != 0)
{
if (errno == ENOENT && allow_enoent)
Expand Down

0 comments on commit 664116f

Please sign in to comment.