summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rpmdb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
index c17dcbfc6..76425b4ca 100644
--- a/lib/rpmdb.c
+++ b/lib/rpmdb.c
@@ -294,6 +294,9 @@ static int dbt2set(dbiIndex dbi, DBT * data, dbiIndexSet * setp)
_DBSWAP(hdrNum);
_DBSWAP(tagNum);
}
+ /* remove tagged directory info */
+ if (tagNum.ui & 0x80000000)
+ tagNum.ui &= 0x0000ffff;
set->recs[i].hdrNum = hdrNum.ui;
set->recs[i].tagNum = tagNum.ui;
}