Dag-Erling Smørgrav
2486034511
Remove an unnecessary cast, obviating the need for <stdint.h> which
...
apparently isn't present on some platforms (e.g. Solaris 8)
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@281 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2004-07-27 12:07:13 +00:00
Dag-Erling Smørgrav
58b2c9d06a
s/accound/account/
...
Spotted by: rwatson
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@280 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2004-03-07 05:04:36 +00:00
Dag-Erling Smørgrav
38daa8ac23
Make the ENTER*() and RETURN*() macros safe from side-effects, and
...
solve the "dereferencing NULL pointer" warning.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@279 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2004-02-17 11:13:13 +00:00
Dag-Erling Smørgrav
5dcc905a94
Prepare to release OpenPAM Eelgrass.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@278 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2004-02-10 11:00:53 +00:00
Dag-Erling Smørgrav
e38d7ba072
I originally thought the XSSO was wrong to declare pam_get_data()'s
...
final argument as void ** rather than const void **, but having seen
the strict aliasing warnings gcc generates at higher -O levels, it
makes a lot more sense. Change the prototype and definition back to
what the XSSO specifies, and make the necessary changes to avoid
warnings in code that calls pam_get_data().
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@277 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-12-11 17:41:17 +00:00
Dag-Erling Smørgrav
187f68b10f
Tell gcc that _openpam_log() behaves like printf().
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@276 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-12-11 17:37:14 +00:00
Dag-Erling Smørgrav
4e4cdb38d4
I completely bungled the previous commit. Don't know what I was
...
thinking (or smoking) at the time. Really fix it this time.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@275 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-12-10 17:42:25 +00:00
Dag-Erling Smørgrav
924113f0c6
Belatedly fix confusion about the layout of resp, cf. similar changes
...
in OpenSSH-portable.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@274 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-11-19 09:36:36 +00:00
Dag-Erling Smørgrav
0e41195790
Correct the description of the conversation function's second argument,
...
and credit yar@ for spotting the mistake.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@273 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-21 21:58:11 +00:00
Dag-Erling Smørgrav
c8dc56b998
Revert the previous commit. It seemed like a good idea at the time,
...
but it breaks at least one module in -CURRENT.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@272 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-21 21:52:56 +00:00
Dag-Erling Smørgrav
bb34964217
Postpone Dogwood until tomorrow.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@271 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-15 00:32:43 +00:00
Dag-Erling Smørgrav
9314904961
Update the release notes and installation instructions.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@270 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 23:53:57 +00:00
Dag-Erling Smørgrav
27480e5170
FOPEN_MAX wasn't such a reliable <stdio.h> indicator after all, so
...
use _IOFBF instead.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@269 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 23:53:19 +00:00
Dag-Erling Smørgrav
a131b240b3
Include all files listed in the manifest.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@268 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 23:44:14 +00:00
Dag-Erling Smørgrav
5985e60d5a
Solaris needs <limits.h> for NGROUPS_MAX. Don't bother making this
...
conditional as it's a standard header.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@267 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 15:31:38 +00:00
Dag-Erling Smørgrav
bb8d609e45
Install headers in the right place.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@266 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 15:07:23 +00:00
Dag-Erling Smørgrav
51ec3dc33d
Prepare to release OpenPAM Dogwood later today.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@265 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:34:43 +00:00
Dag-Erling Smørgrav
21f58dc32e
Use read(2) on fileno(stdin) rather than fgets(3). This make timeout
...
handling considerably simpler, eliminating the need for setjmp(3) and
evil global variables.
Portions submitted by: Dmitry V. Levin <ldv@altlinux.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@264 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:17:47 +00:00
Dag-Erling Smørgrav
620f3bf045
Constify the msg field of struct pam_message, and realign.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@263 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-07-14 14:15:45 +00:00
Dag-Erling Smørgrav
922d9cb144
Avoid side effects in macro arguments (don't I ever learn?); also
...
address some related style issues.
Submitted by: Dmitry V. Levin <ldv@altlinux.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@262 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:41:27 +00:00
Dag-Erling Smørgrav
108a953440
Staticize the default prompts.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@261 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:41:15 +00:00
Dag-Erling Smørgrav
5c411be234
Change '-type f' to '-not -type d' to make sure we also get symlinks
...
and whatnot.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@260 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:32:54 +00:00
Dag-Erling Smørgrav
f8982aa271
Joe Marcus Clarke is a FreeBSD committer, so list his freebsd.org
...
address.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@259 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:16:42 +00:00
Dag-Erling Smørgrav
ba03913cf0
Checking the return value from pam_get_item(3) isn't enough, we also
...
have to check that the item isn't NULL.
Submitted by: marcus
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@258 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-18 11:14:58 +00:00
Dag-Erling Smørgrav
ff7d10eaa1
A script for removing files P4 doesn't know about.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@257 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-13 10:23:28 +00:00
Dag-Erling Smørgrav
8ef4fd3218
Streamline the distribution process.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@256 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-13 10:22:25 +00:00
Dag-Erling Smørgrav
a3c9744349
Have dist.sh automatically set the release date.
...
Touch all files in the distribution directory before rolling the
release to avoid false negative dependency checks later.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@255 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:52:07 +00:00
Dag-Erling Smørgrav
2f755d1e37
Nits.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@254 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:35:37 +00:00
Dag-Erling Smørgrav
2061441423
Update the distribution script to use configure and GNU make.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@253 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:30:40 +00:00
Dag-Erling Smørgrav
1ae60f36ce
Document the installation procedure.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@252 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:30:10 +00:00
Dag-Erling Smørgrav
5de0bf6bae
Autoconfuse.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@251 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 01:29:37 +00:00
Dag-Erling Smørgrav
1c16675283
Paranoia: clear buffers before returning.
...
Submitted by: Dmitry V. Levin <ldv@altlinux.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@250 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-09 00:47:28 +00:00
Dag-Erling Smørgrav
0bca19fe3b
Fix some markup issues pointed out by ru@.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@249 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-02 21:41:24 +00:00
Dag-Erling Smørgrav
c25cf2c668
Remove debugging output.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@248 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-02 17:03:15 +00:00
Dag-Erling Smørgrav
f0f2b56813
Include openpam_readline.3 in the tarball.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@247 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:49:20 +00:00
Dag-Erling Smørgrav
d228372583
Release documentation for OpenPAM Digitalis.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@246 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:46:10 +00:00
Dag-Erling Smørgrav
049385996b
Give up trying to keep track of what has changed and what hasn't;
...
just slap a 2003 copyright on everything.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@245 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:34:11 +00:00
Dag-Erling Smørgrav
202b021ebb
The next release will be Digitalis.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@244 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:28:03 +00:00
Dag-Erling Smørgrav
044448812b
Incorporate patches from Dmitry V. Levin which improve the policy
...
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
2003-06-01 14:23:25 +00:00
Dag-Erling Smørgrav
3326a91846
Cross-reference openpam_{get,set}_option(3).
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@242 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-06-01 14:05:15 +00:00
Dag-Erling Smørgrav
6c68711fe1
Continue improving the new configuration parser, particularly error
...
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
2003-05-26 15:31:28 +00:00
Dag-Erling Smørgrav
0fe6f41f7c
Overhaul the configuration parser. This adds support for continuation
...
lines and policy inclusion.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@240 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 18:34:31 +00:00
Dag-Erling Smørgrav
f8a8bd8714
Don't include DESTDIR in BINDIR and LIBDIR; OTOH, provide a default
...
DESTDIR of /usr.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@239 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 18:31:54 +00:00
Dag-Erling Smørgrav
49189d9bbc
Use RTLD_NOW where available, and define it to RTLD_LAZY otherwise.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@238 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 13:41:46 +00:00
Dag-Erling Smørgrav
9a08cc3e52
Note that OpenPAM now builds on most glibc-based Linux platforms.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@237 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 12:58:55 +00:00
Dag-Erling Smørgrav
592df31db1
Remove trailing semicolons from macros.
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@236 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 12:53:36 +00:00
Dag-Erling Smørgrav
84ba876926
No need to explicitly clear pointers now that we use FREE().
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@235 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-25 12:52:31 +00:00
Dag-Erling Smørgrav
df0aac6712
Return code paranoia: compare against 0 instead of -1.
...
Suggested by: Dmitry V. Levin <ldv@altlinux.org>
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@234 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:52:28 +00:00
Dag-Erling Smørgrav
7f62c5701c
Two more cases of asprintf(3) replacing malloc(3) + sprintf(3).
...
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@233 185d5e19-27fe-0310-9dcf-9bff6b9f3609
2003-05-24 19:47:00 +00:00
Dag-Erling Smørgrav
570d0c7751
With one single exception (where the pointer is obviously being
...
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
2003-05-24 19:44:29 +00:00