aboutsummaryrefslogtreecommitdiff
path: root/tests/tst-pam_mkargv.c
Commit message (Collapse)AuthorAgeFilesLines
* build: consistently include config.h unconditionallyDmitry V. Levin2024-08-281-3/+1
| | | | | | | | Given that in most places config.h is included unconditionally, there is no point in keeping remaining HAVE_CONFIG_H checks. Public header files do not use config.h and therefore are not affected by this change anyway.
* tests: free return value of _pam_mkargv()Christian Göttsche2023-08-071-0/+2
| | | | | _pam_mkargv() states that callers should free the returned value since otherwise the memory gets leaked.
* _pam_mkargv: add const qualifier to the first argumentDmitry V. Levin2020-01-201-4/+4
| | | | | | | | | | | | | | | Also fix the following compilation warning: tests/tst-pam_mkargv.c:21:22: warning: initialization discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers] char *argvstring = "user = XENDT\\userα user=XENDT\\user1"; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * libpam/pam_misc.c (_pam_mkargv): Add const qualifier to the first argument. * libpam/pam_private.h (_pam_mkargv): Likewise. * tests/tst-pam_mkargv.c (main): Convert argvstring from a pointer into a static const string, make argvresult array static const.
* Relevant BUGIDs:Dmitry V. Levin2009-03-031-1/+3
| | | | | | | | | | | Purpose of commit: bugfix Commit summary: --------------- 2009-03-03 Dmitry V. Levin <ldv@altlinux.org> * tests/tst-pam_mkargv.c (main): Fix for non-64bit architectures.
* Relevant BUGIDs:Thorsten Kukuk2009-02-251-0/+52
Purpose of commit: bugfix Commit summary: --------------- 2009-02-25 Thorsten Kukuk <kukuk@thkukuk.de> * libpam/pam_misc.c (_pam_StrTok): Use unsigned char instead of int. Reported by Marcus Granado. * tests/Makefile.am (TESTS): Add tst-pam_mkargv. * tests/tst-pam_mkargv.c (main): Test case for _pam_mkargv. * po/de.po: Update fuzzy translations.