View | Details | Raw Unified | Return to bug 543 | Differences between
and this patch

Collapse All | Expand All

(-)configure.ac (+1 lines)
Lines 81-86 Link Here
81
				LIBS="$LIBS -ls"
81
				LIBS="$LIBS -ls"
82
			])
82
			])
83
		])
83
		])
84
	AC_CHECK_FUNCS(setauthdb)
84
	AC_DEFINE(BROKEN_GETADDRINFO)
85
	AC_DEFINE(BROKEN_GETADDRINFO)
85
	AC_DEFINE(BROKEN_REALPATH)
86
	AC_DEFINE(BROKEN_REALPATH)
86
	dnl AIX handles lastlog as part of its login message
87
	dnl AIX handles lastlog as part of its login message
(-)session.c (-1 / +1 lines)
Lines 1212-1218 Link Here
1212
	{
1212
	{
1213
1213
1214
#ifdef HAVE_SETPCRED
1214
#ifdef HAVE_SETPCRED
1215
		setpcred(pw->pw_name);
1215
		setpcred(pw->pw_name, (char **)"");
1216
#endif /* HAVE_SETPCRED */
1216
#endif /* HAVE_SETPCRED */
1217
#ifdef HAVE_LOGIN_CAP
1217
#ifdef HAVE_LOGIN_CAP
1218
# ifdef __bsdi__
1218
# ifdef __bsdi__
(-)openbsd-compat/port-aix.c (+9 lines)
Lines 64-69 Link Here
64
void
64
void
65
record_failed_login(const char *user, const char *ttyname)
65
record_failed_login(const char *user, const char *ttyname)
66
{
66
{
67
#ifdef HAVE_SETAUTHDB
68
	char *registry, *oldauthdb;
69
70
	setuserdb(S_READ);
71
	if (getuserattr(authctxt->user, S_REGISTRY, &registry, SEC_CHAR) == 0)
72
		setauthdb(registry, oldauthdb);
73
	enduserdb();
74
#endif /* HAVE_SETAUTHDB */
75
67
	loginfailed(user,
76
	loginfailed(user,
68
	    get_canonical_hostname(options.verify_reverse_mapping), ttyname);
77
	    get_canonical_hostname(options.verify_reverse_mapping), ttyname);
69
}
78
}
(-)openbsd-compat/port-aix.h (+4 lines)
Lines 26-31 Link Here
26
26
27
#ifdef _AIX
27
#ifdef _AIX
28
28
29
#ifdef WITH_AIXAUTHENTICATE
30
# include <usersec.h>
31
#endif
32
29
/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
33
/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
30
#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
34
#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
31
# define nanosleep(a,b) nsleep(a,b)
35
# define nanosleep(a,b) nsleep(a,b)

Return to bug 543