From 3451d097b3c374963b3916f0fa5a9e04d7737e2b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 11 Jan 2025 18:42:03 +0000 Subject: [PATCH] snapshots: Fix logic error and process directories Signed-off-by: Michael Tremer --- src/pakfire/snapshot.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pakfire/snapshot.c b/src/pakfire/snapshot.c index 51242ff1e..1a9101e0f 100644 --- a/src/pakfire/snapshot.c +++ b/src/pakfire/snapshot.c @@ -630,8 +630,13 @@ int pakfire_snapshot_clean(struct pakfire* pakfire) { } // We only care about directories - if (node->fts_info == FTS_D) - continue; + switch (node->fts_info) { + case FTS_D: + break; + + default: + continue; + } // Open the snapshot r = pakfire_snapshot_create(&snapshot, ctx, node->fts_path); -- 2.47.3