diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-24 14:36:02 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-04-24 14:36:02 +0200 |
commit | e63b456471b99a1e5f4fe01ad71ddf1bdc3c11a3 (patch) | |
tree | 15c7b079d49334e56f7891b9edc1fd73157504b5 /main/apk-tools/audit-recurse.patch | |
parent | 66e807f5ef864ef72b7b5825d879241ae6fb4160 (diff) | |
download | aports-e63b456471b99a1e5f4fe01ad71ddf1bdc3c11a3.tar.bz2 aports-e63b456471b99a1e5f4fe01ad71ddf1bdc3c11a3.tar.xz |
main/apk-tools: fix audit --backup --recurse
Needs be upstreamed.
Diffstat (limited to 'main/apk-tools/audit-recurse.patch')
-rw-r--r-- | main/apk-tools/audit-recurse.patch | 20 |
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 000000000..a7675531c --- /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; |