From fe677872b216a53e5d74cdff59cd16406f31fdf6 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 10 Jan 2025 16:31:29 +0000 Subject: [PATCH] stripper: Only copy regular source files Signed-off-by: Michael Tremer --- src/pakfire/stripper.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.47.3