- (stevesk) Fix detection of pw_class struct member in configure;
patch from KAMAHARA Junzo <kamahara@cc.kshosen.ac.jp>
This commit is contained in:
parent
cccca27890
commit
48b7cc0dd7
1
CREDITS
1
CREDITS
|
@ -44,6 +44,7 @@ Jarno Huuskonen <jhuuskon@hytti.uku.fi> - Bugfixes
|
||||||
Jim Knoble <jmknoble@pobox.com> - Many patches
|
Jim Knoble <jmknoble@pobox.com> - Many patches
|
||||||
Jonchen (email unknown) - the original author of PAM support of SSH
|
Jonchen (email unknown) - the original author of PAM support of SSH
|
||||||
Juergen Keil <jk@tools.de> - scp bugfixing
|
Juergen Keil <jk@tools.de> - scp bugfixing
|
||||||
|
KAMAHARA Junzo <kamahara@cc.kshosen.ac.jp> - Configure fixes
|
||||||
Kees Cook <cook@cpoint.net> - scp fixes
|
Kees Cook <cook@cpoint.net> - scp fixes
|
||||||
Kenji Miyake <kenji@miyake.org> - Configure fixes
|
Kenji Miyake <kenji@miyake.org> - Configure fixes
|
||||||
Kevin O'Connor <kevin_oconnor@standardandpoors.com> - RSAless operation
|
Kevin O'Connor <kevin_oconnor@standardandpoors.com> - RSAless operation
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
20001007
|
20001007
|
||||||
- (stevesk) Print PAM return value in PAM log messages to aid
|
- (stevesk) Print PAM return value in PAM log messages to aid
|
||||||
with debugging.
|
with debugging.
|
||||||
|
- (stevesk) Fix detection of pw_class struct member in configure;
|
||||||
|
patch from KAMAHARA Junzo <kamahara@cc.kshosen.ac.jp>
|
||||||
|
|
||||||
20001002
|
20001002
|
||||||
- (djm) Fix USER_PATH, report from Kevin Steves <stevesk@sweden.hp.com>
|
- (djm) Fix USER_PATH, report from Kevin Steves <stevesk@sweden.hp.com>
|
||||||
- (djm) Add host system and CC to end-of-configure report. Suggested by
|
- (djm) Add host system and CC to end-of-configure report. Suggested by
|
||||||
|
|
|
@ -829,10 +829,9 @@ AC_CACHE_CHECK([for pw_class field in struct passwd],
|
||||||
ac_cv_have_pw_class_in_struct_passwd, [
|
ac_cv_have_pw_class_in_struct_passwd, [
|
||||||
AC_TRY_COMPILE(
|
AC_TRY_COMPILE(
|
||||||
[
|
[
|
||||||
#include <sys/types.h>
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
],
|
],
|
||||||
[ struct passwd p s; p.pw_class = NULL; ],
|
[ struct passwd p; p.pw_class = 0; ],
|
||||||
[ ac_cv_have_pw_class_in_struct_passwd="yes" ],
|
[ ac_cv_have_pw_class_in_struct_passwd="yes" ],
|
||||||
[ ac_cv_have_pw_class_in_struct_passwd="no" ]
|
[ ac_cv_have_pw_class_in_struct_passwd="no" ]
|
||||||
)
|
)
|
||||||
|
|
|
@ -244,7 +244,7 @@ do_authenticated(struct passwd * pw)
|
||||||
s = session_new();
|
s = session_new();
|
||||||
s->pw = pw;
|
s->pw = pw;
|
||||||
|
|
||||||
#ifdef HAVE_LOGIN_CAP
|
#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD)
|
||||||
if ((lc = login_getclass(pw->pw_class)) == NULL) {
|
if ((lc = login_getclass(pw->pw_class)) == NULL) {
|
||||||
error("unable to get login class");
|
error("unable to get login class");
|
||||||
return;
|
return;
|
||||||
|
@ -1966,7 +1966,7 @@ do_authenticated2(void)
|
||||||
close(startup_pipe);
|
close(startup_pipe);
|
||||||
startup_pipe = -1;
|
startup_pipe = -1;
|
||||||
}
|
}
|
||||||
#ifdef HAVE_LOGIN_CAP
|
#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD)
|
||||||
pw = auth_get_user();
|
pw = auth_get_user();
|
||||||
if ((lc = login_getclass(pw->pw_class)) == NULL) {
|
if ((lc = login_getclass(pw->pw_class)) == NULL) {
|
||||||
error("unable to get login class");
|
error("unable to get login class");
|
||||||
|
|
Loading…
Reference in New Issue