summaryrefslogtreecommitdiff
path: root/security/srp_client/patches
diff options
context:
space:
mode:
Diffstat (limited to 'security/srp_client/patches')
-rw-r--r--security/srp_client/patches/patch-aa35
-rw-r--r--security/srp_client/patches/patch-ab13
-rw-r--r--security/srp_client/patches/patch-ac61
-rw-r--r--security/srp_client/patches/patch-ad13
4 files changed, 122 insertions, 0 deletions
diff --git a/security/srp_client/patches/patch-aa b/security/srp_client/patches/patch-aa
new file mode 100644
index 00000000000..6c614abda31
--- /dev/null
+++ b/security/srp_client/patches/patch-aa
@@ -0,0 +1,35 @@
+$NetBSD: patch-aa,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $
+
+--- base/src/login.c.orig Fri Dec 11 15:14:01 1998
++++ base/src/login.c Fri Jun 18 06:56:49 1999
+@@ -34,6 +34,9 @@
+
+ #include "prototypes.h"
+ #include "defines.h"
++#if defined(unix)
++#include <sys/param.h>
++#endif
+ #include <sys/stat.h>
+ #include <stdio.h>
+ #include <pwd.h>
+@@ -45,6 +48,8 @@
+
+ #if HAVE_LASTLOG_H
+ #include <lastlog.h>
++#elif (defined(BSD) && BSD >= 199306)
++#include <utmp.h>
+ #else
+ #include "lastlog_.h"
+ #endif
+@@ -75,7 +80,11 @@
+ * Needed for MkLinux DR1/2/2.1 - J.
+ */
+ #ifndef LASTLOG_FILE
++#if (defined(BSD) && BSD >= 199306)
++#define LASTLOG_FILE _PATH_LASTLOG
++#else
+ #define LASTLOG_FILE "/var/log/lastlog"
++#endif
+ #endif
+
+ char *host = "";
diff --git a/security/srp_client/patches/patch-ab b/security/srp_client/patches/patch-ab
new file mode 100644
index 00000000000..26a78a02bef
--- /dev/null
+++ b/security/srp_client/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $
+
+--- base/libmisc/limits.c.orig Wed Dec 9 20:43:21 1998
++++ base/libmisc/limits.c Fri Jun 18 06:47:16 1999
+@@ -84,6 +84,8 @@
+ return 0;
+ }
+
++extern struct utmp *getutent();
++
+ /* Counts the number of user logins and check against the limit*/
+ static int
+ check_logins(name, maxlogins)
diff --git a/security/srp_client/patches/patch-ac b/security/srp_client/patches/patch-ac
new file mode 100644
index 00000000000..aaddb1d61a7
--- /dev/null
+++ b/security/srp_client/patches/patch-ac
@@ -0,0 +1,61 @@
+$NetBSD: patch-ac,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $
+
+Rename setmode (and clearmode for consistency) to avoid clash with unistd.h.
+
+--- telnet/telnet/commands.c.orig Thu Dec 10 17:50:48 1998
++++ telnet/telnet/commands.c Fri Jun 18 06:59:32 1999
+@@ -64,6 +64,7 @@
+ #include <fcntl.h>
+ #endif /* CRAY */
+
++#include <unistd.h> /* vfork() */
+ #include <signal.h>
+ #include <netdb.h>
+ #include <ctype.h>
+@@ -1156,13 +1157,13 @@
+ }
+
+ int
+-setmode(bit)
++setlmode(bit)
+ {
+ return dolmmode(bit, 1);
+ }
+
+ int
+-clearmode(bit)
++clearlmode(bit)
+ {
+ return dolmmode(bit, 0);
+ }
+@@ -1188,18 +1189,18 @@
+ #endif
+ { "", "", 0 },
+ { "", "These require the LINEMODE option to be enabled", 0 },
+- { "isig", "Enable signal trapping", setmode, 1, MODE_TRAPSIG },
+- { "+isig", 0, setmode, 1, MODE_TRAPSIG },
+- { "-isig", "Disable signal trapping", clearmode, 1, MODE_TRAPSIG },
+- { "edit", "Enable character editing", setmode, 1, MODE_EDIT },
+- { "+edit", 0, setmode, 1, MODE_EDIT },
+- { "-edit", "Disable character editing", clearmode, 1, MODE_EDIT },
+- { "softtabs", "Enable tab expansion", setmode, 1, MODE_SOFT_TAB },
+- { "+softtabs", 0, setmode, 1, MODE_SOFT_TAB },
+- { "-softtabs", "Disable character editing", clearmode, 1, MODE_SOFT_TAB },
+- { "litecho", "Enable literal character echo", setmode, 1, MODE_LIT_ECHO },
+- { "+litecho", 0, setmode, 1, MODE_LIT_ECHO },
+- { "-litecho", "Disable literal character echo", clearmode, 1, MODE_LIT_ECHO },
++ { "isig", "Enable signal trapping", setlmode, 1, MODE_TRAPSIG },
++ { "+isig", 0, setlmode, 1, MODE_TRAPSIG },
++ { "-isig", "Disable signal trapping", clearlmode, 1, MODE_TRAPSIG },
++ { "edit", "Enable character editing", setlmode, 1, MODE_EDIT },
++ { "+edit", 0, setlmode, 1, MODE_EDIT },
++ { "-edit", "Disable character editing", clearlmode, 1, MODE_EDIT },
++ { "softtabs", "Enable tab expansion", setlmode, 1, MODE_SOFT_TAB },
++ { "+softtabs", 0, setlmode, 1, MODE_SOFT_TAB },
++ { "-softtabs", "Disable character editing", clearlmode, 1, MODE_SOFT_TAB },
++ { "litecho", "Enable literal character echo", setlmode, 1, MODE_LIT_ECHO },
++ { "+litecho", 0, setlmode, 1, MODE_LIT_ECHO },
++ { "-litecho", "Disable literal character echo", clearlmode, 1, MODE_LIT_ECHO },
+ { "help", 0, modehelp, 0 },
+ #ifdef KLUDGELINEMODE
+ { "kludgeline", 0, dokludgemode, 1 },
diff --git a/security/srp_client/patches/patch-ad b/security/srp_client/patches/patch-ad
new file mode 100644
index 00000000000..b50e59324a3
--- /dev/null
+++ b/security/srp_client/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 1999/06/18 19:18:18 jlam Exp $
+
+--- ftp/ftp/pclose.c.orig Wed Dec 9 20:43:25 1998
++++ ftp/ftp/pclose.c Fri Jun 18 06:54:14 1999
+@@ -17,6 +17,8 @@
+ #include <sys/wait.h>
+ #ifdef HAVE_VFORK_H
+ #include <vfork.h>
++#else
++#include <unistd.h> /* vfork() */
+ #endif
+ #define sig_t my_sig_t
+ #define sigtype RETSIGTYPE