From 04d36fafb11a981406fd7650d0f976502e9f2f53 Mon Sep 17 00:00:00 2001 From: Misaki Kasumi Date: Sat, 21 Dec 2024 14:14:34 +0800 Subject: [PATCH] sysroot: Use ostree/repo to check visibility --- src/libostree/ostree-sysroot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libostree/ostree-sysroot.c b/src/libostree/ostree-sysroot.c index 98bfae43..2fa821ce 100644 --- a/src/libostree/ostree-sysroot.c +++ b/src/libostree/ostree-sysroot.c @@ -477,7 +477,7 @@ _ostree_sysroot_invisible (const OstreeSysroot *self, gboolean *out_val, GError g_assert (self->sysroot_fd >= 0); g_assert (self->root_is_ostree_booted); - if (!glnx_fstatat_allow_noent (self->sysroot_fd, "sysroot/ostree", NULL, 0, error)) + if (!glnx_fstatat_allow_noent (self->sysroot_fd, "ostree/repo", NULL, 0, error)) return FALSE; if (errno == 0)