From 3cbf480f5170aa274918fbee0424d375e6ce3f67 Mon Sep 17 00:00:00 2001 From: bouyer Date: Wed, 1 Dec 1999 20:48:35 +0000 Subject: Make this work on solaris. --- security/ssh/patches/patch-au | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'security/ssh') diff --git a/security/ssh/patches/patch-au b/security/ssh/patches/patch-au index b6c002f68db..23c97128142 100644 --- a/security/ssh/patches/patch-au +++ b/security/ssh/patches/patch-au @@ -1,11 +1,12 @@ -$NetBSD: patch-au,v 1.2 1999/09/18 21:08:21 kim Exp $ +$NetBSD: patch-au,v 1.3 1999/12/01 20:48:35 bouyer Exp $ --- login.c.orig Wed May 12 07:19:26 1999 +++ login.c Sat Sep 18 17:03:20 1999 -@@ -271,6 +271,19 @@ +@@ -271,7 +271,22 @@ struct utmp u, u2; off_t offset; const char *utmp, *wtmp; ++#endif +#if defined(HAVE_HOST_IN_UTMP) || defined(HAVE_LASTLOG_H) || defined(HAVE_LASTLOG) + char myname[MAXHOSTNAMELEN]; + char shost[MAXHOSTNAMELEN]; @@ -20,9 +21,11 @@ $NetBSD: patch-au,v 1.2 1999/09/18 21:08:21 kim Exp $ + } +#endif ++#if defined(HAVE_UTMP_H) && !defined(HAVE_UTMPX_H) /* Construct an utmp/wtmp entry. */ memset(&u, 0, sizeof(u)); -@@ -301,12 +314,14 @@ + #ifdef DEAD_PROCESS +@@ -301,12 +316,14 @@ strncpy(u.ut_user, user, sizeof(u.ut_user)); #endif /* HAVE_NAME_IN_UTMP */ #ifdef HAVE_HOST_IN_UTMP @@ -42,7 +45,7 @@ $NetBSD: patch-au,v 1.2 1999/09/18 21:08:21 kim Exp $ #endif /* HAVE_HOST_IN_UTMP */ #ifdef HAVE_ADDR_IN_UTMP if (addr) -@@ -490,7 +505,12 @@ +@@ -490,7 +507,12 @@ /* Update lastlog. */ ll.ll_time = time(NULL); strncpy(ll.ll_line, ttyname + 5, sizeof(ll.ll_line)); -- cgit v1.2.3