diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-12-06 19:54:42 +0100 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2023-12-06 18:59:13 +0000 |
commit | 66cb44437a5453e0b5eeffa20cf7c5b42f721279 (patch) | |
tree | ad551a58ee80076adcf3781a140182dd6a6b5531 /libpam/pam_handlers.c | |
parent | 982dab88350732b60eb54a91b76927b0b044ab9d (diff) | |
download | pam-66cb44437a5453e0b5eeffa20cf7c5b42f721279.tar.gz pam-66cb44437a5453e0b5eeffa20cf7c5b42f721279.tar.bz2 pam-66cb44437a5453e0b5eeffa20cf7c5b42f721279.zip |
libpam: remove format argument for _pam_tokenize
It is always the same format.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'libpam/pam_handlers.c')
-rw-r--r-- | libpam/pam_handlers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpam/pam_handlers.c b/libpam/pam_handlers.c index 860a1abf..2030dbb8 100644 --- a/libpam/pam_handlers.c +++ b/libpam/pam_handlers.c @@ -85,7 +85,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f /* No service field: all lines are for the known service. */ this_service = known_service; } else { - this_service = tok = _pam_tokenize(buf, " \n\t", &nexttok); + this_service = tok = _pam_tokenize(buf, &nexttok); } #ifdef PAM_READ_BOTH_CONFS @@ -103,7 +103,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f /* This is a service we are looking for */ D(("Found PAM config entry for: %s", this_service)); - tok = _pam_tokenize(NULL, " \n\t", &nexttok); + tok = _pam_tokenize(NULL, &nexttok); if (tok == NULL) { /* module type does not exist */ D(("empty module type for %s", this_service)); @@ -150,7 +150,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f for (i=0; i<_PAM_RETURN_VALUES; actions[i++] = _PAM_ACTION_UNDEF); } - tok = _pam_tokenize(NULL, " \n\t", &nexttok); + tok = _pam_tokenize(NULL, &nexttok); if (tok == NULL) { /* no module name given */ D(("no control flag supplied")); @@ -195,7 +195,7 @@ static int _pam_parse_conf_file(pam_handle_t *pamh, FILE *f _pam_set_default_control(actions, _PAM_ACTION_BAD); } - tok = _pam_tokenize(NULL, " \n\t", &nexttok); + tok = _pam_tokenize(NULL, &nexttok); if (pam_include) { if (substack) { res = _pam_add_handler(pamh, PAM_HT_SUBSTACK, other, |