]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
elf-util: fix alignment
authorMike Yuan <me@yhndnzj.com>
Sat, 3 Jan 2026 19:08:12 +0000 (20:08 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 3 Jan 2026 19:08:12 +0000 (20:08 +0100)
src/shared/elf-util.c

index 6097b4cf9eac3b0cc4f2abb96e121a03f71318c8..e199b42c82a24c1b32d0406dd445b58ad0a65bbb 100644 (file)
@@ -857,12 +857,13 @@ int parse_elf_object(
          * bound since the core files have an upper size limit. It's also not doing any
          * system call or interacting with the system in any way, besides reading from
          * the file descriptor and writing into these four pipes. */
-        r = pidref_safe_fork_full("(sd-parse-elf)",
-                           /* stdio_fds= */ NULL,
-                           (int[]){ fd, error_pipe[1], return_pipe[1], package_metadata_pipe[1], dlopen_metadata_pipe[1] },
-                           5,
-                           FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_NEW_MOUNTNS|FORK_MOUNTNS_SLAVE|FORK_NEW_USERNS|FORK_WAIT|FORK_REOPEN_LOG,
-                           /* ret= */ NULL);
+        r = pidref_safe_fork_full(
+                        "(sd-parse-elf)",
+                        /* stdio_fds= */ NULL,
+                        (int[]) { fd, error_pipe[1], return_pipe[1], package_metadata_pipe[1], dlopen_metadata_pipe[1] },
+                        5,
+                        FORK_RESET_SIGNALS|FORK_CLOSE_ALL_FDS|FORK_NEW_MOUNTNS|FORK_MOUNTNS_SLAVE|FORK_NEW_USERNS|FORK_WAIT|FORK_REOPEN_LOG,
+                        /* ret= */ NULL);
         if (r < 0) {
                 if (r == -EPROTO) { /* We should have the errno from the child, but don't clobber original error */
                         ssize_t k;