summaryrefslogtreecommitdiff
path: root/src/audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audit.c')
-rw-r--r--src/audit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audit.c b/src/audit.c
index fe72c88..31965df 100644
--- a/src/audit.c
+++ b/src/audit.c
@@ -56,6 +56,11 @@ static int audit_directory(apk_hash_item item, void *ctx)
if (apk_file_get_info(tmp, APK_CHECKSUM_NONE, &fi) < 0)
continue;
+ if (!(actx->type & AUDIT_SYSTEM) &&
+ (dbd->flags & APK_DBDIRF_SYMLINKS_ONLY) &&
+ !S_ISLNK(fi.mode))
+ continue;
+
if (S_ISDIR(fi.mode)) {
if (apk_db_dir_query(db, APK_BLOB_STR(tmp)) != NULL)
continue;