gsi/patches: BlissPie GSI v11.3 Stable
- Update all patches to latest changes
- Remove deprecated patches
Signed-off-by: Jackeagle <jackeagle102@gmail.com>
Change-Id: Icb36d629ee463d9a9d580ad43ef08eec7b71bdf2
diff --git a/patches/frameworks/base/0009-property-matching-RROs-allow-to-prefix-the-value-wit.patch b/patches/frameworks/base/0009-property-matching-RROs-allow-to-prefix-the-value-wit.patch
new file mode 100644
index 0000000..a9d2b36
--- /dev/null
+++ b/patches/frameworks/base/0009-property-matching-RROs-allow-to-prefix-the-value-wit.patch
@@ -0,0 +1,35 @@
+From 602f7828e34cbc4363a337f3babba30a3496e2e4 Mon Sep 17 00:00:00 2001
+From: Pierre-Hugues Husson <phh@phh.me>
+Date: Tue, 12 Jun 2018 22:55:32 +0200
+Subject: [PATCH 09/24] property-matching RROs: allow to prefix the value with
+ + to do glob match instead of exact match
+
+---
+ cmds/idmap/scan.cpp | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/cmds/idmap/scan.cpp b/cmds/idmap/scan.cpp
+index d69dd79555a..2be6d23ac78 100644
+--- a/cmds/idmap/scan.cpp
++++ b/cmds/idmap/scan.cpp
+@@ -1,5 +1,6 @@
+ #include <dirent.h>
+ #include <inttypes.h>
++#include <fnmatch.h>
+ #include <sys/file.h>
+ #include <sys/stat.h>
+
+@@ -92,6 +93,10 @@ namespace {
+ property_get(prop, propBuf, NULL);
+ val = strndup16to8(value.string(), value.size());
+
++ if(val[0]=='+') {
++ return fnmatch(val+1, propBuf, 0) != 0;
++ }
++
+ return (strcmp(propBuf, val) == 0);
+ }
+
+--
+2.17.1
+