Skip Menu |
 

Subject: pre-POSIX getpw{nam,uid}_r support
Some pre-POSIX systems like HP-UX 10.20 have getpwnam_r and getpwuid_r
functions with four arguments, returning int. That's a case we don't
handle at the moment. Also, relating to ticket 2929, I think the test
for the number of arguments is too weak -- if one of the compilations
succeeds, it thinks it knows how many arguments are needed. It should
do two compilations, and require that exactly one succeed.
From: raeburn@mit.edu
Subject: CVS Commit
This patch tightens up our determination of whether we can use
getpw{nam,uid}_r, and using the set flags, creates macros providing a
consistent API, and if possible thread safety.

* configure.in: Don't check for getpwnam_r and getpwuid_r with AC_CHECK_FUNCS;
use AC_CHECK_FUNC, and only set shell variables. Run stricter tests on return
types and numbers of arguments, and only define the C macros if these
parameters can actually be determined.
* k5-platform.h (k5_getpwnam_r, k5_getpwuid_r): New macros.


To generate a diff of this commit:



cvs diff -r1.495 -r1.496 krb5/src/include/ChangeLog
cvs diff -r1.56 -r1.57 krb5/src/include/configure.in
cvs diff -r1.12 -r1.13 krb5/src/include/k5-platform.h
From: raeburn@mit.edu
Subject: CVS Commit
* configure.in: Don't check for getpwnam_r and getpwuid_r in the thread-safety
warnings. The tests done elsewhere in the tree are stricter and may not
agree.


To generate a diff of this commit:



cvs diff -r5.487 -r5.488 krb5/src/ChangeLog
cvs diff -r1.86 -r1.87 krb5/src/configure.in
From: raeburn@mit.edu
Subject: CVS Commit
* kuserok.c (krb5_kuserok): Use k5_getpwnam_r.


To generate a diff of this commit:



cvs diff -r5.419 -r5.420 krb5/src/lib/krb5/os/ChangeLog
cvs diff -r5.28 -r5.29 krb5/src/lib/krb5/os/kuserok.c
From: raeburn@mit.edu
Subject: CVS Commit
* configure.in: Don't check for getpwuid_r here.
* prof_file.c (profile_open_file): Use k5_getpwuid_r.


To generate a diff of this commit:



cvs diff -r1.179 -r1.180 krb5/src/util/profile/ChangeLog
cvs diff -r1.27 -r1.28 krb5/src/util/profile/configure.in
cvs diff -r1.54 -r1.55 krb5/src/util/profile/prof_file.c
From: raeburn@mit.edu
Subject: CVS Commit
* import_name.c (krb5_gss_import_name): Use k5_getpwuid_r.


To generate a diff of this commit:



cvs diff -r1.276 -r1.277 krb5/src/lib/gssapi/krb5/ChangeLog
cvs diff -r1.19 -r1.20 krb5/src/lib/gssapi/krb5/import_name.c
From: tlyu@mit.edu
Subject: CVS Commit
pullup from trunk


To generate a diff of this commit:



cvs diff -r5.479.4.5 -r5.479.4.6 krb5/src/ChangeLog
cvs diff -r1.86 -r1.86.4.1 krb5/src/configure.in
cvs diff -r1.471.2.12 -r1.471.2.13 krb5/src/include/ChangeLog
cvs diff -r1.53.4.1 -r1.53.4.2 krb5/src/include/configure.in
cvs diff -r1.10.4.2 -r1.10.4.3 krb5/src/include/k5-platform.h
cvs diff -r1.275.4.2 -r1.275.4.3 krb5/src/lib/gssapi/krb5/ChangeLog
cvs diff -r1.19 -r1.19.4.1 krb5/src/lib/gssapi/krb5/import_name.c
cvs diff -r5.412.2.8 -r5.412.2.9 krb5/src/lib/krb5/os/ChangeLog
cvs diff -r5.28 -r5.28.4.1 krb5/src/lib/krb5/os/kuserok.c
cvs diff -r1.168.2.8 -r1.168.2.9 krb5/src/util/profile/ChangeLog
cvs diff -r1.25 -r1.25.4.1 krb5/src/util/profile/configure.in
cvs diff -r1.47.2.4 -r1.47.2.5 krb5/src/util/profile/prof_file.c