summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2012-04-27 08:09:59 +0300
committerTimo Teräs <timo.teras@iki.fi>2012-04-27 08:09:59 +0300
commitff83382e214a36f39953c6740a62e9e2849cf87f (patch)
tree05b0af09d3e5c8437f889d8f1dedd27f2dc77d97 /src
parenta3280c30611c4db8a65a920850bfe0a8aeb09d23 (diff)
downloadapk-tools-ff83382e214a36f39953c6740a62e9e2849cf87f.tar.gz
apk-tools-ff83382e214a36f39953c6740a62e9e2849cf87f.tar.bz2
apk-tools-ff83382e214a36f39953c6740a62e9e2849cf87f.tar.xz
apk-tools-ff83382e214a36f39953c6740a62e9e2849cf87f.zip
db: fix has_protected_children setup on leaf path entries
Fixes --recurse during audit.
Diffstat (limited to 'src')
-rw-r--r--src/database.c2
1 files changed, 1 insertions, 1 deletions
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;