teknoraver / rpms / rpm

Forked from rpms/rpm 3 months ago
Clone

Blame rpm-4.16.1.3-caret-query.patch

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