ea9a62
From 4420c78beb86cc67392274bf351478a3375626a2 Mon Sep 17 00:00:00 2001
ea9a62
From: yangchenguang <89123114+yangchenguang94@users.noreply.github.com>
ea9a62
Date: Wed, 13 Jul 2022 16:52:07 +0800
ea9a62
Subject: [PATCH] Fix query arguments with ^ not working
ea9a62
ea9a62
when querying packages in the RPM database.
ea9a62
ea9a62
Rersolves: #2104
ea9a62
---
ea9a62
 lib/rpmdb.c | 1 +
ea9a62
 1 file changed, 1 insertion(+)
ea9a62
ea9a62
diff --git a/lib/rpmdb.c b/lib/rpmdb.c
ea9a62
index fa8f3c9b9c..fd2b0671ae 100644
ea9a62
--- a/lib/rpmdb.c
ea9a62
+++ b/lib/rpmdb.c
ea9a62
@@ -1133,6 +1133,7 @@ static char * mireDup(rpmTagVal tag, rpmMireMode *modep,
ea9a62
 	    switch (*s) {
ea9a62
 	    case '.':
ea9a62
 	    case '+':
ea9a62
+	    case '^':
ea9a62
 		if (!brackets) *t++ = '\\';
ea9a62
 		break;
ea9a62
 	    case '*':