case of openpam_log(3) better. Also work around a mysterious Perl
bug by using a loop to emulate the 'g' regexp flag.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@228 185d5e19-27fe-0310-9dcf-9bff6b9f3609
change the copyright date on generated man pages from 2002 to 2001-2003
since work on this part of OpenPAM started in late 2001.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@221 185d5e19-27fe-0310-9dcf-9bff6b9f3609
minor number, so the only file we can safely depend on is libpam.a.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@219 185d5e19-27fe-0310-9dcf-9bff6b9f3609
will fail if the code won't build. Finish the release by showing
the MD5 checksum of the tarball.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@218 185d5e19-27fe-0310-9dcf-9bff6b9f3609
on all platforms, notably OpenBSD).
Submitted by: Mike Petullo <mike@flyn.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@216 185d5e19-27fe-0310-9dcf-9bff6b9f3609
child rather than in the parent so that pam_close_session(3) will be
called with privs. Simplify some of the error handling.
Based on patches received from Mike Petullo <mike@flyn.org>.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@215 185d5e19-27fe-0310-9dcf-9bff6b9f3609
module which has the "debug" option, and disable it upon return.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@210 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This allows modules etc. to emit PAM_LOG_DEBUG messages independently
of whether libpam was compiled with -DDEBUG.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@209 185d5e19-27fe-0310-9dcf-9bff6b9f3609
avoid a warning about assigning void * to a function pointer.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@208 185d5e19-27fe-0310-9dcf-9bff6b9f3609
to long, while enums are required to fit in an int. To avoid the
warning this causes, use (-0x7fffffff - 1) instead of 0x80000000.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@207 185d5e19-27fe-0310-9dcf-9bff6b9f3609
complained that it didn't work. Make it return a pointer to the
actual value of the requested environment variable.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@204 185d5e19-27fe-0310-9dcf-9bff6b9f3609
effects as arguments to macros. Also impose some sort of consistency
in the naming of variables that hold error codes.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@203 185d5e19-27fe-0310-9dcf-9bff6b9f3609
a debugging message and fail.
If the effective uid is non-zero but identical to the target uid,
save the current credentials and return without doing anything else.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@201 185d5e19-27fe-0310-9dcf-9bff6b9f3609
portable (and less polluting) than #include <sys/types.h>.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@199 185d5e19-27fe-0310-9dcf-9bff6b9f3609
Solaris does it too, so at least I'm not the odd one out.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@198 185d5e19-27fe-0310-9dcf-9bff6b9f3609
as if the user had just pressed enter.
Obtained from: TrustedBSD
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@192 185d5e19-27fe-0310-9dcf-9bff6b9f3609
service module. Use that information to generate a much better
error message when indirect recursion is detected.
Instrument openpam_dispatch()'s entry and exit points.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@186 185d5e19-27fe-0310-9dcf-9bff6b9f3609
Add a member to the pam_handle structure indicating which primitive
is currently executing.
Add a ton of debugging macros.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@185 185d5e19-27fe-0310-9dcf-9bff6b9f3609