]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
core/exec-invoke: drop unused pam_pid 31070/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 Jan 2024 05:40:25 +0000 (14:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 Jan 2024 05:43:18 +0000 (14:43 +0900)
src/core/exec-invoke.c

index 1ae766d93ede9e51f0705ba3bbd7fa5060a51376..829e094f519b442dd4b419bf2177911d83aafcf3 100644 (file)
@@ -1123,7 +1123,7 @@ static int setup_pam(
         sigset_t old_ss;
         int pam_code = PAM_SUCCESS, r;
         bool close_session = false;
-        pid_t pam_pid = 0, parent_pid;
+        pid_t parent_pid;
         int flags = 0;
 
         assert(name);
@@ -1198,7 +1198,7 @@ static int setup_pam(
 
         parent_pid = getpid_cached();
 
-        r = safe_fork("(sd-pam)", 0, &pam_pid);
+        r = safe_fork("(sd-pam)", 0, NULL);
         if (r < 0)
                 goto fail;
         if (r == 0) {