aboutsummaryrefslogtreecommitdiffstats
path: root/main/apk-tools/audit-recurse.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/apk-tools/audit-recurse.patch')
-rw-r--r--main/apk-tools/audit-recurse.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/main/apk-tools/audit-recurse.patch b/main/apk-tools/audit-recurse.patch
new file mode 100644
index 0000000000..a7675531c0
--- /dev/null
+++ b/main/apk-tools/audit-recurse.patch
@@ -0,0 +1,20 @@
+diff --git a/src/database.c b/src/database.c
+index ae6810b..26774be 100644
+--- a/src/database.c
++++ b/src/database.c
+@@ -353,7 +353,6 @@ struct apk_db_dir *apk_db_dir_get(struct apk_database *db, apk_blob_t name)
+ .protected = ppath->protected,
+ .symlinks_only = ppath->symlinks_only,
+ };
+- dir->has_protected_children |= ppath->protected;
+ } else {
+ if (fnmatch(ppath->relative_pattern, relative_name, FNM_PATHNAME) != 0)
+ continue;
+@@ -361,6 +360,7 @@ struct apk_db_dir *apk_db_dir_get(struct apk_database *db, apk_blob_t name)
+ dir->protected = ppath->protected;
+ dir->symlinks_only = ppath->symlinks_only;
+ }
++ dir->has_protected_children |= ppath->protected;
+ }
+
+ return dir;