From: Michael Tremer Date: Wed, 8 Jan 2025 15:08:00 +0000 (+0000) Subject: stripper: Create directories where we are creating the files X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1549731b2346e380350c72904878e282e9e290da;p=people%2Fric9%2Fpakfire.git stripper: Create directories where we are creating the files Signed-off-by: Michael Tremer --- 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;