aboutsummaryrefslogtreecommitdiffstats
path: root/net/SSLtelnet/files/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'net/SSLtelnet/files/patch-ab')
-rw-r--r--net/SSLtelnet/files/patch-ab80
1 files changed, 70 insertions, 10 deletions
diff --git a/net/SSLtelnet/files/patch-ab b/net/SSLtelnet/files/patch-ab
index 874b479581d2..1175eef711b8 100644
--- a/net/SSLtelnet/files/patch-ab
+++ b/net/SSLtelnet/files/patch-ab
@@ -1,5 +1,5 @@
--- telnetd/pathnames.h.orig Sat Jun 15 17:26:10 1996
-+++ telnetd/pathnames.h Wed Sep 2 12:53:18 1998
++++ telnetd/pathnames.h Sat Oct 17 22:11:51 1998
@@ -53,7 +53,7 @@
/* I'm working on having this work as is with SunOS 5.x */
#ifndef USE_SRALOGIN
@@ -9,19 +9,79 @@
#define _PATH_LOGIN "/usr/bin/login"
#else
#define _PATH_LOGIN "/bin/login"
---- telnetd/sys_term.c.orig Wed Sep 2 12:53:19 1998
-+++ telnetd/sys_term.c Wed Sep 2 12:53:22 1998
-@@ -739,7 +739,7 @@
+--- telnetd/sys_term.c.orig Sat Aug 2 14:37:00 1997
++++ telnetd/sys_term.c Sat Oct 17 22:11:51 1998
+@@ -531,7 +531,7 @@
+ return(p);
+ #else
+
+- register char c, *p1, *p2;
++ register char c, *p1, *p2, *cp;
+ register int i;
+
+ #if defined(__GNUC__) || defined(__sgi)
+@@ -548,20 +548,40 @@
+ p1 = &line[8];
+ p2 = &line[9];
+ #endif
+-
+- for (c = 'p'; c <= 's'; c++) {
++ for (cp = "pqrsPQRS"; *cp; cp++) {
+ struct stat stb;
+
+- *p1 = c;
++ *p1 = *cp;
+ *p2 = '0';
++ /*
++ * This stat() check is just to keep us from
++ * looping through all 256 combinations if there
++ * aren't that many ptys available.
++ */
+ if (stat(line, &stb) < 0)
+ break;
+- for (i = 0; i < 16; i++) {
+- *p2 = "0123456789abcdef"[i];
++ for (i = 0; i < 32; i++) {
++ *p2 = "0123456789abcdefghijklmnopqrstuv"[i];
+ p = open(line, 2);
+ if (p > 0) {
++#ifndef __hpux
+ line[5] = 't';
+- return(p);
++#else
++ for (p1 = &line[8]; *p1; p1++)
++ *p1 = *(p1+1);
++ line[9] = 't';
++#endif
++ chown(line, 0, 0);
++ chmod(line, 0600);
++#if defined(sun) && defined(TIOCGPGRP) && BSD < 199207
++ if (ioctl(p, TIOCGPGRP, &dummy) == 0
++ || errno != EIO) {
++ chmod(line, 0666);
++ close(p);
++ line[5] = 'p';
++ } else
++#endif /* defined(sun) && defined(TIOCGPGRP) && BSD < 199207 */
++ return(p);
+ }
+ }
+ }
+@@ -733,11 +753,7 @@
else
termbuf.lflags &= ~LPASS8;
#else
- if (on) {
-+ if (1) {
- termbuf.c_iflag &= ~ISTRIP;
- } else {
- termbuf.c_iflag |= ISTRIP;
+- termbuf.c_iflag &= ~ISTRIP;
+- } else {
+- termbuf.c_iflag |= ISTRIP;
+- }
++ termbuf.c_iflag &= ~ISTRIP;
+ #endif
+ }
+
--- telnetd/telnetd.c.orig Sat Aug 2 14:40:48 1997
-+++ telnetd/telnetd.c Wed Sep 2 12:53:21 1998
++++ telnetd/telnetd.c Sat Oct 17 22:13:52 1998
@@ -140,7 +140,7 @@
highpty = getnpty();
#endif /* CRAY */
@@ -67,7 +127,7 @@
}
}
--- telnetd/Makefile.orig Tue Sep 12 10:22:51 1995
-+++ telnetd/Makefile Fri Sep 4 15:10:46 1998
++++ telnetd/Makefile Sat Oct 17 22:11:51 1998
@@ -4,16 +4,13 @@
PROG= telnetd