]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coredump: fix coding style
authorMichal Sekletar <msekleta@redhat.com>
Mon, 9 Sep 2024 16:25:21 +0000 (18:25 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 30 Oct 2024 12:20:40 +0000 (12:20 +0000)
src/coredump/coredump.c

index f44aca211f76ad7f0f9a6e5bc7dd61353403edfc..70403e1221d1d92f70c4df5ec9a3d2169ba22241 100644 (file)
@@ -1675,7 +1675,17 @@ static int gather_pid_mount_tree_fd(const Context *context) {
         if (r < 0)
                 return log_error_errno(r, "Failed to open mount namespace of crashing process: %m");
 
-        r = namespace_fork("(sd-mount-tree-ns)", "(sd-mount-tree)", NULL, 0, FORK_RESET_SIGNALS|FORK_DEATHSIG_SIGKILL, -1, mntns_fd, -1, -1, root_fd, &child);
+        r = namespace_fork("(sd-mount-tree-ns)",
+                           "(sd-mount-tree)",
+                           /* except_fds= */ NULL,
+                           /* n_except_fds= */ 0,
+                           FORK_RESET_SIGNALS|FORK_DEATHSIG_SIGKILL,
+                           /* pidns_fd= */ -EBADF,
+                           mntns_fd,
+                           /* netns_fd= */ -EBADF,
+                           /* userns_fd= */ -EBADF,
+                           root_fd,
+                           &child);
         if (r < 0)
                 return log_error_errno(r, "Failed to fork(): %m");
         if (r == 0) {