Dmitry V. Levin
954234f0a4
treewide: assume free(NULL) is no-op
...
The C standard guarantees that if the argument of free() is a null
pointer, no action occurs.
2023-12-14 08:00:00 +00:00
Benny Baumann
a85e6f66ea
libpam: use printf type annotation for size_t
...
Several debug messages were using %u (unsigned int) instead of the
contextually correct %zu (size_t AKA long unsigned int), potentially
causing silent truncation of the printed value.
Signed-off-by: Benny Baumann <BenBE@geshi.org>
2023-11-13 13:24:08 +00:00
Dmitry V. Levin
1814aec611
Fix whitespace issues
...
Cleanup trailing whitespaces, indentation that uses spaces before tabs,
and blank lines at EOF. Make the project free of warnings reported by
git diff --check 4b825dc642
HEAD
2011-10-26 23:56:54 +00:00
Tomas Mraz
09c2e0fcf1
Relevant BUGIDs:
...
Purpose of commit: bugfix
Commit summary:
---------------
2008-05-14 Tomas Mraz <t8m@centrum.cz>
* libpam/pam_modutil_getgrgid.c: Replace hardcoded constant with
define PWD_LENGTH_SHIFT.
* libpam/pam_modutil_getgrnam.c: Likewise.
* libpam/pam_modutil_getpwnam.c: Likewise.
* libpam/pam_modutil_getpwuid.c: Likewise.
* libpam/pam_modutil_getspnam.c: Likewise.
* libpam/pam_modutil_private.h: Adjust values for PWD_ constants.
2008-05-14 12:55:02 +00:00
Steve Langasek
34df708209
Relevant BUGIDs:
...
Purpose of commit: portability, cleanup
Commit summary:
---------------
2007-08-29 Steve Langasek <vorlon@debian.org>
* libpam/pam_modutil_getgrgid.c, libpam/pam_modutil_getgrnam.c,
libpam/pam_modutil_getpwnam.c, libpam/pam_modutil_getpwuid.c,
libpam/pam_modutil_getspnam.c: don't use pthread mutexes in libpam
unnecessarily; this avoids linking problems on non-Linux
platforms.
2007-08-30 04:00:39 +00:00
Tomas Mraz
be09d6354e
Relevant BUGIDs:
...
Purpose of commit: new feature
Commit summary:
---------------
Moved functions from pammodutil to libpam.
2005-09-21 10:00:58 +00:00