mirror of
https://github.com/javalsai/lidm.git
synced 2025-08-31 02:18:00 +02:00
fix(auth.c): use POSIX pid_t
Use standard pid_t type instead of libc specific __pid_t type.
This commit is contained in:
@@ -245,7 +245,7 @@ bool launch(char* user, char* passwd, struct session session, void (*cb)(void),
|
|||||||
perror("execl error");
|
perror("execl error");
|
||||||
(void)fputs("failure calling session\n", stderr);
|
(void)fputs("failure calling session\n", stderr);
|
||||||
} else {
|
} else {
|
||||||
__pid_t child_pid = (__pid_t)pid;
|
pid_t child_pid = (pid_t)pid;
|
||||||
waitpid(child_pid, NULL, 0);
|
waitpid(child_pid, NULL, 0);
|
||||||
|
|
||||||
pam_setcred(pamh, PAM_DELETE_CRED);
|
pam_setcred(pamh, PAM_DELETE_CRED);
|
||||||
|
Reference in New Issue
Block a user