summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-02-02 17:10:11 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-02-02 17:10:11 +1100
commit42d9dc75ed2eefa6eeffc892f02eb164c1860603 (patch)
treec10968f34ae3610ac1630718b2b2c967d5a448aa /openbsd-compat/port-aix.c
parentad7646a59ab05ed9d6c156ba952725f44c02de7d (diff)
- (dtucker) [auth.c loginrec.h openbsd-compat/{bsd-cray,port-aix}.{c,h}]
Make record_failed_login() call provide hostname rather than having the implementations having to do lookups themselves. Only affects AIX and UNICOS (the latter only uses the "user" parameter anyway). ok djm@
Diffstat (limited to 'openbsd-compat/port-aix.c')
-rw-r--r--openbsd-compat/port-aix.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/openbsd-compat/port-aix.c b/openbsd-compat/port-aix.c
index e7eb179ec..79d180211 100644
--- a/openbsd-compat/port-aix.c
+++ b/openbsd-compat/port-aix.c
@@ -28,8 +28,6 @@
28#include "auth.h" 28#include "auth.h"
29#include "ssh.h" 29#include "ssh.h"
30#include "log.h" 30#include "log.h"
31#include "servconf.h"
32#include "canohost.h"
33#include "xmalloc.h" 31#include "xmalloc.h"
34#include "buffer.h" 32#include "buffer.h"
35 33
@@ -38,7 +36,6 @@
38#include <uinfo.h> 36#include <uinfo.h>
39#include "port-aix.h" 37#include "port-aix.h"
40 38
41extern ServerOptions options;
42extern Buffer loginmsg; 39extern Buffer loginmsg;
43 40
44# ifdef HAVE_SETAUTHDB 41# ifdef HAVE_SETAUTHDB
@@ -280,10 +277,8 @@ sys_auth_record_login(const char *user, const char *host, const char *ttynm)
280 * record_failed_login: generic "login failed" interface function 277 * record_failed_login: generic "login failed" interface function
281 */ 278 */
282void 279void
283record_failed_login(const char *user, const char *ttyname) 280record_failed_login(const char *user, const char *hostname, const char *ttyname)
284{ 281{
285 char *hostname = (char *)get_canonical_hostname(options.use_dns);
286
287 if (geteuid() != 0) 282 if (geteuid() != 0)
288 return; 283 return;
289 284