From: Michael Tremer Date: Sat, 11 Jan 2025 18:42:03 +0000 (+0000) Subject: snapshots: Fix logic error and process directories X-Git-Tag: 0.9.30~420 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3451d097b3c374963b3916f0fa5a9e04d7737e2b;p=pakfire.git snapshots: Fix logic error and process directories Signed-off-by: Michael Tremer --- 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);