Skip to content

Commit

Permalink
- (stevesk) Fix detection of pw_class struct member in configure;
Browse files Browse the repository at this point in the history
    patch from KAMAHARA Junzo <[email protected]>
  • Loading branch information
Kevin Steves committed Oct 7, 2000
1 parent cccca27 commit 48b7cc0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CREDITS
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Jarno Huuskonen <[email protected]> - Bugfixes
Jim Knoble <[email protected]> - Many patches
Jonchen (email unknown) - the original author of PAM support of SSH
Juergen Keil <[email protected]> - scp bugfixing
KAMAHARA Junzo <[email protected]> - Configure fixes
Kees Cook <[email protected]> - scp fixes
Kenji Miyake <[email protected]> - Configure fixes
Kevin O'Connor <[email protected]> - RSAless operation
Expand Down
4 changes: 3 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
20001007
- (stevesk) Print PAM return value in PAM log messages to aid
with debugging.

- (stevesk) Fix detection of pw_class struct member in configure;
patch from KAMAHARA Junzo <[email protected]>

20001002
- (djm) Fix USER_PATH, report from Kevin Steves <[email protected]>
- (djm) Add host system and CC to end-of-configure report. Suggested by
Expand Down
3 changes: 1 addition & 2 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -829,10 +829,9 @@ AC_CACHE_CHECK([for pw_class field in struct passwd],
ac_cv_have_pw_class_in_struct_passwd, [
AC_TRY_COMPILE(
[
#include <sys/types.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="no" ]
)
Expand Down
4 changes: 2 additions & 2 deletions session.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ do_authenticated(struct passwd * pw)
s = session_new();
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) {
error("unable to get login class");
return;
Expand Down Expand Up @@ -1966,7 +1966,7 @@ do_authenticated2(void)
close(startup_pipe);
startup_pipe = -1;
}
#ifdef HAVE_LOGIN_CAP
#if defined(HAVE_LOGIN_CAP) && defined(HAVE_PW_CLASS_IN_PASSWD)
pw = auth_get_user();
if ((lc = login_getclass(pw->pw_class)) == NULL) {
error("unable to get login class");
Expand Down

0 comments on commit 48b7cc0

Please sign in to comment.