From 1549731b2346e380350c72904878e282e9e290da Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 8 Jan 2025 15:08:00 +0000 Subject: [PATCH] stripper: Create directories where we are creating the files Signed-off-by: Michael Tremer --- src/pakfire/stripper.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pakfire/stripper.c b/src/pakfire/stripper.c index 794145e48..99358a377 100644 --- a/src/pakfire/stripper.c +++ b/src/pakfire/stripper.c @@ -346,6 +346,11 @@ static int pakfire_stripper_extract_debuginfo(struct pakfire_stripper* self, NULL, }; + // Create the directories + r = pakfire_mkparentdir(build_id_path, 0755); + if (r < 0) + return r; + // Run the command r = pakfire_jail_exec_command(self->jail, argv, NULL, 0); if (r < 0) { @@ -417,11 +422,6 @@ static int pakfire_stripper_strip_debuginfo(struct pakfire_stripper* self, // Extract the debug information if (extract_debuginfo) { - // Create the directories - r = pakfire_mkparentdir(build_id_path, 0755); - if (r < 0) - goto ERROR; - r = pakfire_stripper_extract_debuginfo(self, file, elf, build_id_path); if (r < 0) goto ERROR; -- 2.47.3