summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kolesa <daniel@octaforge.org>2022-03-06 17:24:04 +0100
committerTimo Teräs <timo.teras@iki.fi>2022-03-06 18:28:10 +0200
commit1be55db3d0eb565f4d7ab4b7674daef2976b2571 (patch)
tree5a032965da55d47df6c4dd65b302cc0df3278c0e
parent296647e3f947a39dc1915724e1f2de7b9a8fd3fc (diff)
downloadapk-tools-1be55db3d0eb565f4d7ab4b7674daef2976b2571.tar.gz
apk-tools-1be55db3d0eb565f4d7ab4b7674daef2976b2571.tar.bz2
apk-tools-1be55db3d0eb565f4d7ab4b7674daef2976b2571.tar.xz
apk-tools-1be55db3d0eb565f4d7ab4b7674daef2976b2571.zip
db: fix APK_OPENF_NO_STATE check
fixes #10821
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c
index 28f3cba..79a5c4a 100644
--- a/src/database.c
+++ b/src/database.c
@@ -1730,7 +1730,7 @@ int apk_db_open(struct apk_database *db, struct apk_ctx *ac)
apk_db_read_overlay(db, apk_istream_from_fd(STDIN_FILENO));
}
- if ((db->ctx->flags & APK_OPENF_NO_STATE) != APK_OPENF_NO_STATE) {
+ if ((db->ctx->open_flags & APK_OPENF_NO_STATE) != APK_OPENF_NO_STATE) {
for (i = 0; i < APK_DB_LAYER_NUM; i++) {
r = apk_db_read_layer(db, i);
if (r) {