From: Michael Tremer Date: Thu, 20 May 2021 11:34:44 +0000 (+0000) Subject: snapshots: Drop static list of excludes X-Git-Tag: 0.9.28~1285^2~126 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=897b7367ccc533c105907320c5d79a8827bb56d7;p=pakfire.git snapshots: Drop static list of excludes Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/snapshot.c b/src/libpakfire/snapshot.c index e238890de..1aec0436a 100644 --- a/src/libpakfire/snapshot.c +++ b/src/libpakfire/snapshot.c @@ -37,26 +37,6 @@ #include #include -static const char* pakfire_snapshot_excludes[] = { - "/dev", - "/proc", - "/run", - "/sys", - "/var/cache/ccache", - "/var/tmp", - NULL, -}; - -static int pakfire_snapshot_path_is_excluded(const char* path) { - for (const char** exclude = pakfire_snapshot_excludes; *exclude; exclude++) { - if (pakfire_string_startswith(path, *exclude)) - return 1; - } - - // No match - return 0; -} - static int pakfire_snapshot_progressbar( struct pakfire_progressbar** progressbar, const char* message) { int r = pakfire_progressbar_create(progressbar, NULL); @@ -178,12 +158,6 @@ PAKFIRE_EXPORT int pakfire_snapshot_create(Pakfire pakfire, FILE* f) { continue; } - // Skip excludes - if (pakfire_snapshot_path_is_excluded(path)) { - DEBUG(pakfire, "Skipping excluded path %s...\n", path); - continue; - } - archive_read_disk_descend(reader); // Reset path to relative path in archive