diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-18 08:43:31 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-01-18 07:43:31 +0000 |
commit | 560a1c4dd86d63640da78ab17d72b6ce24fbebfc (patch) | |
tree | f32c83fe736a777b95cae94903c9880bd06a7a17 /libpam | |
parent | cc9d40b7cdbd3e15ccaa324a0dda1680ef9dea13 (diff) | |
download | pam-560a1c4dd86d63640da78ab17d72b6ce24fbebfc.tar.gz pam-560a1c4dd86d63640da78ab17d72b6ce24fbebfc.tar.bz2 pam-560a1c4dd86d63640da78ab17d72b6ce24fbebfc.zip |
libpam: fix build with --enable-read-both-confs
If configure option --enable-read-both-confs is used, the build
fails with 1.6.0 due to missing stack level depth argument passed to
_pam_parse_conf_file.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Resolves: https://github.com/linux-pam/linux-pam/issues/736
Fixes: v1.6.0~205 ("libpam: avoid infinite recursion with includes")
Diffstat (limited to 'libpam')
-rw-r--r-- | libpam/pam_handlers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c index 879c4513..55d5b2fa 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -500,7 +500,7 @@ int _pam_init_handlers(pam_handle_t *pamh) if (pamh->confdir == NULL && (f = fopen(PAM_CONFIG,"r")) != NULL) { - retval = _pam_parse_conf_file(pamh, f, NULL, PAM_T_ANY, 0, 1); + retval = _pam_parse_conf_file(pamh, f, NULL, PAM_T_ANY, 0, 0, 1); fclose(f); } else #endif /* PAM_READ_BOTH_CONFS */ |