summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-07-14 16:21:44 +1000
committerDarren Tucker <dtucker@zip.com.au>2003-07-14 16:21:44 +1000
commit5c6a91a39d83f2fe68de28d9635076dd4066d7e2 (patch)
tree798bcc2b7a9b6e1f6626c3b37db75634c998972f /openbsd-compat/port-aix.c
parentb9aa0a0baa33efb06a773de18f2b45c12c15cbaf (diff)
- (dtucker) [acconfig.h configure.ac port-aix.c] Older AIXes don't declare
loginfailed at all, so assume 3-arg loginfailed if not declared.
Diffstat (limited to 'openbsd-compat/port-aix.c')
-rw-r--r--openbsd-compat/port-aix.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index cc6190cb..56292372 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -92,10 +92,10 @@ record_failed_login(const char *user, const char *ttyname)
{
char *hostname = get_canonical_hostname(options.use_dns);
-# ifdef AIX_LOGINFAILED_3ARG
- loginfailed((char *)user, hostname, (char *)ttyname);
-# else
+# ifdef AIX_LOGINFAILED_4ARG
loginfailed((char *)user, hostname, (char *)ttyname, AUDIT_FAIL_AUTH);
+# else
+ loginfailed((char *)user, hostname, (char *)ttyname);
# endif
}
# endif /* CUSTOM_FAILED_LOGIN */