diff --git a/src/app_audit.c b/src/app_audit.c index dbf60cf24bdbd3d9747327b5f607d486ad8bf579..8f727aa2bdd0610888869f5bfe96dfddb756ff86 100644 --- a/src/app_audit.c +++ b/src/app_audit.c @@ -307,7 +307,7 @@ static int audit_directory_tree_item(void *ctx, int dirfd, const char *name) recurse_check: atctx->path[atctx->pathlen++] = '/'; bfull.len++; - report_audit(actx, reason, bfull, dir, NULL, &fi); + report_audit(actx, reason, bfull, child, NULL, &fi); if (reason != 'D' && recurse) { atctx->dir = child; reason = apk_dir_foreach_file(