diff options
-rw-r--r-- | security/srp_client/distinfo | 3 | ||||
-rw-r--r-- | security/srp_client/patches/patch-aj | 67 |
2 files changed, 69 insertions, 1 deletions
diff --git a/security/srp_client/distinfo b/security/srp_client/distinfo index 30bb1303aec..b29533258c3 100644 --- a/security/srp_client/distinfo +++ b/security/srp_client/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.3 2002/01/20 01:30:37 wiz Exp $ +$NetBSD: distinfo,v 1.4 2002/08/19 09:17:15 agc Exp $ SHA1 (srp-1.4.4.tar.gz) = 56b8b3c29bee2b995b74acb5303dab326265f9b3 Size (srp-1.4.4.tar.gz) = 1183636 bytes @@ -11,3 +11,4 @@ SHA1 (patch-af) = 4a5d21b667f39cfba61478614f4497710463aa06 SHA1 (patch-ag) = 81eff66b05d11a943e9b66b9e31904d612eca449 SHA1 (patch-ah) = 914544e6a2ae6c07be03ac8c5c46f9d996e8f3a5 SHA1 (patch-ai) = ea2f81385d83b36f12ff2a63fc8b9cc9aad68674 +SHA1 (patch-aj) = aa24ee27daeb0b2cb4e300c84f8902fbba6e41c4 diff --git a/security/srp_client/patches/patch-aj b/security/srp_client/patches/patch-aj new file mode 100644 index 00000000000..bc0f33174f8 --- /dev/null +++ b/security/srp_client/patches/patch-aj @@ -0,0 +1,67 @@ +$NetBSD: patch-aj,v 1.1 2002/08/19 09:17:16 agc Exp $ + +--- base/libmisc/utmp.c 2002/08/19 08:56:57 1.1 ++++ base/libmisc/utmp.c 2002/08/19 09:02:40 +@@ -93,6 +93,8 @@ + #endif + #endif + ++ ut = NULL; ++ + #if HAVE_UTMPX_H + setutxent (); + #endif +@@ -141,17 +143,21 @@ + if (utx) + utxent = *utx; + #endif ++#if HAVE_GETUTENT + while ((ut = getutent())) + if (ut->ut_pid == pid) + break; + + if (ut) + utent = *ut; ++#endif + + #if HAVE_UTMPX_H + endutxent(); + #endif ++#if HAVE_ENDUTENT + endutent(); ++#endif + + if (!ut) { + puts(NO_UTENT); +@@ -188,6 +194,7 @@ + if (strncmp(line, "/dev/", 5) == 0) + line += 5; + ++#if !defined(__NetBSD__) + strncpy (utent.ut_line, line, sizeof utent.ut_line); + if ((ut = getutline(&utent))) + strncpy(utent.ut_id, ut->ut_id, sizeof ut->ut_id); +@@ -206,6 +213,7 @@ + gettimeofday((struct timeval *) &utxent.ut_tv, NULL); + utent.ut_time = utxent.ut_tv.tv_sec; + #endif ++#endif /* !NetBSD */ + } + #else /* !USG */ + +@@ -283,6 +291,7 @@ + break; + } + } ++#if HAVE_GETUTENT + while (utmp = getutent ()) { + if (utmp->ut_pid == pid) { + found_utmp = 1; +@@ -357,6 +366,7 @@ + + utxent = utxline; + utent = utline; ++#endif + + #else /* !SVR4 */ + struct utmp utmp; |