aboutsummaryrefslogtreecommitdiff
path: root/libpam/pam_modutil_getlogin.c
Commit message (Collapse)AuthorAgeFilesLines
* libpam: simplify string copying using strdupChristian Göttsche2023-03-041-5/+1
|
* libpam: use getlogin() from libc and not utmpThorsten Kukuk2023-02-141-41/+11
| | | | | | | | | utmp uses 32bit time_t for compatibility with 32bit userland on some 64bit systems and is thus not Y2038 safe. Use getlogin() from libc which avoids using utmp and is more safe than the old utmp-based implementation by using /proc/self/loginuid. * libpam/pam_modutil_getlogin.c: Use getlogin() instead of parsing utmp
* Relevant BUGIDs: noneThorsten Kukuk2005-11-231-2/+8
| | | | | | | | | | | | | | | Purpose of commit: bugfix Commit summary: --------------- 2005-11-23 Thorsten Kukuk <kukuk@suse.de> * modules/pam_xauth/pam_xauth.c (pam_sm_open_session): Introduce new variable to fix compiler warning. * libpam/pam_modutil_getlogin.c (pam_modutil_getlogin): PAM_TTY don't need to start with /dev/.
* Relevant BUGIDs:Tomas Mraz2005-09-211-0/+74
Purpose of commit: new feature Commit summary: --------------- Moved functions from pammodutil to libpam.