Commit ff83382e authored by Timo Teräs's avatar Timo Teräs

db: fix has_protected_children setup on leaf path entries

Fixes --recurse during audit.
parent a3280c30
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment