From: Michael Tremer Date: Fri, 10 Jan 2025 16:31:29 +0000 (+0000) Subject: stripper: Only copy regular source files X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe677872b216a53e5d74cdff59cd16406f31fdf6;p=people%2Fric9%2Fpakfire.git stripper: Only copy regular source files Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/stripper.c b/src/pakfire/stripper.c index b7b02d05f..14f6dd654 100644 --- a/src/pakfire/stripper.c +++ b/src/pakfire/stripper.c @@ -282,6 +282,10 @@ static int pakfire_stripper_copy_sources( goto ERROR; } + // If the source is not a regular file, we will skip it + if (!S_ISREG(st.st_mode)) + goto ERROR; + // Add the buildroot r = pakfire_path_append(p, self->path, path); if (r < 0)