diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-05 18:24:31 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2024-01-05 23:36:44 +0000 |
commit | 9291f8b78f192bdd254ed751369760be61e6d2d8 (patch) | |
tree | b4f1819bde4fadb77c6f1faecd7aaa0467798b7b /libpam/pam_handlers.c | |
parent | a226bcead7d5c6408708938e21c3efc94ba18f30 (diff) | |
download | pam-9291f8b78f192bdd254ed751369760be61e6d2d8.tar.gz pam-9291f8b78f192bdd254ed751369760be61e6d2d8.tar.bz2 pam-9291f8b78f192bdd254ed751369760be61e6d2d8.zip |
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 <tobias@stoeckmann.org>
Diffstat (limited to 'libpam/pam_handlers.c')
-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 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; |