loader, reducing the number of times each file is read. Also fix
a few minor nits (such as making facility names and control flags
case insensitive like they are in Solaris).
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@243 185d5e19-27fe-0310-9dcf-9bff6b9f3609
reporting: error messages relating to policy files now include line
numbers, and the parser will warn about invalid facility names.
Also fix an off-by-one bug in the option handling code.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@241 185d5e19-27fe-0310-9dcf-9bff6b9f3609
immediately overwritten), replace all use of free(3) with a macro
that clears the pointer after freeing the memory it pointed to.
Suggested by: Dmitry V. Levin <ldv@altlinux.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@232 185d5e19-27fe-0310-9dcf-9bff6b9f3609
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