diff options
author | Dirk Froemberg <dirk@FreeBSD.org> | 1999-08-05 08:00:25 +0000 |
---|---|---|
committer | Dirk Froemberg <dirk@FreeBSD.org> | 1999-08-05 08:00:25 +0000 |
commit | 6ea24563ed2a783f34c40e52abd2d489a6d1f133 (patch) | |
tree | 648ffb2479d37b8488155c3dd3d5c74818d18f16 /net/SSLtelnet/files/patch-af | |
parent | Upgrade to v0.59r. mpg123 can now be built tuned for your specific x86 (diff) |
Fix build and run problems in conjunction with OpenSSL.
Natively SSLtelnet works with SSLeay, only.
PR: ports/12973
Submitted by: Issei Suzuki <issei@jp.FreeBSD.ORG> (maintainer)
Notes
Notes:
svn path=/head/; revision=20534
Diffstat (limited to 'net/SSLtelnet/files/patch-af')
-rw-r--r-- | net/SSLtelnet/files/patch-af | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/net/SSLtelnet/files/patch-af b/net/SSLtelnet/files/patch-af new file mode 100644 index 000000000000..64220971489e --- /dev/null +++ b/net/SSLtelnet/files/patch-af @@ -0,0 +1,70 @@ +--- 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) { +- termbuf.c_iflag &= ~ISTRIP; +- } else { +- termbuf.c_iflag |= ISTRIP; +- } ++ termbuf.c_iflag &= ~ISTRIP; + #endif + } |