From 9291f8b78f192bdd254ed751369760be61e6d2d8 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Fri, 5 Jan 2024 18:24:31 +0100 Subject: libpam: allow custom escaped newline replacement To use _pam_assemble_line in pam_env, we must be able to modify the replacement of an escaped newline. The PAM configuration replaces it with a blank, while pam_env fully removes it. Signed-off-by: Tobias Stoeckmann --- libpam/pam_handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpam/pam_handlers.c') diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c index 28f82d73..879c4513 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -68,7 +68,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f /* * read a line from the configuration (FILE *) f */ - while ((x = _pam_assemble_line(f, &buffer)) > 0) { + while ((x = _pam_assemble_line(f, &buffer, ' ')) > 0) { char *buf = buffer.assembled; char *tok, *nexttok=NULL; const char *this_service; -- cgit v1.2.3