sysupdate: Fix an early return path return value

If the FD has already been opened, return 1 as if opening was
successful, rather than returning 0 as if it gave `ENOENT`.

This fixes doing multiple installdb operations on a single `Context`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall
2026-06-24 13:10:35 +01:00
parent e61a0705db
commit 23bfc4b9e8

View File

@@ -57,7 +57,7 @@ static int context_installdb_acquire_fd(Context *c, bool make) {
assert(c);
if (c->installdb_fd >= 0)
return 0;
return 1;
_cleanup_free_ char *j = NULL;
const char *p;