diff options
author | bouyer <bouyer> | 1999-12-01 20:48:35 +0000 |
---|---|---|
committer | bouyer <bouyer> | 1999-12-01 20:48:35 +0000 |
commit | 3cbf480f5170aa274918fbee0424d375e6ce3f67 (patch) | |
tree | b99082a2a1ad1ad438be8c197e2c69cd478ab627 /security/ssh | |
parent | e66a4c6c356e8cad56e2af1425f4124ce27a9627 (diff) | |
download | pkgsrc-3cbf480f5170aa274918fbee0424d375e6ce3f67.tar.gz |
Make this work on solaris.
Diffstat (limited to 'security/ssh')
-rw-r--r-- | security/ssh/patches/patch-au | 11 |
1 files changed, 7 insertions, 4 deletions
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)); |