[Rpm-maint] [rpm-software-management/rpm] Allow database probing if _db_backend is not set (#1451)
Panu Matilainen
notifications at github.com
Thu Dec 3 09:06:24 UTC 2020
@pmatilai commented on this pull request.
> @@ -77,7 +78,7 @@ dbDetectBackend(rpmdb rdb)
}
}
- if (!cfg) {
+ if (!cfg && ((rdb->db_mode & O_ACCMODE) != O_RDONLY || (rdb->db_flags & RPMDB_FLAG_REBUILD) != 0)) {
Hmm, does this actually need the REBUILD flag test at all, with the O_RDONLY check in place?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1451#pullrequestreview-543737970
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201203/fb619bc1/attachment.html>
More information about the Rpm-maint
mailing list