Merge pull request #3244 from alexlarsson/fix-fsverity-supported

Fix _ostree_ensure_fsverity reporting of supports in early exit
This commit is contained in:
Joseph Marrero Corchado 2024-05-15 13:15:05 -04:00 committed by GitHub
commit 664116f03a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)