From: Michael Tremer Date: Tue, 29 Nov 2022 17:03:23 +0000 (+0000) Subject: build: Strip the leading ! from excluded files X-Git-Tag: 0.9.28~69 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=867f9b0ff8b3790cfa2294f5d87b66ca9c9fdf8f;p=pakfire.git build: Strip the leading ! from excluded files Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index 3d3f6ca94..5d8b181d4 100644 --- a/src/libpakfire/build.c +++ b/src/libpakfire/build.c @@ -341,7 +341,7 @@ static int pakfire_build_package_add_files(struct pakfire_build* build, // Split into includes and excludes for (char** file = files; *file; file++) { if (**file == '!') - r = append_to_array(&excludes, *file); + r = append_to_array(&excludes, *file + 1); else r = append_to_array(&includes, *file); if (r)