home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17218 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.7 KB

  1. Path: sparky!uunet!news.univie.ac.at!alijku11!k111114
  2. Organization: Johannes Kepler University Linz - Computing Center
  3. Date: Thursday, 19 Nov 1992 21:43:29 CET
  4. From: <K111114@ALIJKU11.BITNET>
  5. Message-ID: <92324.214329K111114@ALIJKU11.BITNET>
  6. Newsgroups: comp.os.linux
  7. Subject: telnetd: BUG FIX
  8. Lines: 27
  9.  
  10. Hi.
  11. As with pl5, it is no longer possible to overwrite the text-segment, which is
  12. marked as read-only. This caused some problems to some programs, telnetd is/was
  13. one of them. For those with a source of telnetd:
  14.  
  15. The bug concerns the variable "line". It is declared as "char *line".
  16. Change this to "char line(.10.)", where (. = open bracket, and .) = closed
  17. bracket (since my terminal doesn't have XXXENGLISH WORD MISSINGXXX brackets)
  18.  
  19. The variable "line" is declared somewhere at the begging of telnetd.c
  20. The next change is the modification of "line", which now is valid except the
  21. assignmet "line = "/dev/ptyXX", which has to be replaced by something like
  22. "strcpy(line,"/dev/ptyXX")", and PLEASE, move the assignment outside the
  23. for-loop, the UCB/BSD version does assign it everytime inside the loop ...
  24. The assignment takes place in a routine called "do_it", near the end of the
  25. file telnetd.c
  26.  
  27. I'm referring to the UCB/BSD Version, but I think that the telnetd.c used for
  28. Linux is also ported. Since I haven't got the Linux-version, I had to fetch
  29. this one, and, of course, I'm missing something :-) What do I have to do to
  30. get TCIOGETP/TCIOSETP/TCIOGETC/... and friends working ? I simply made a
  31. "wild guess" at what the mean in the linux headerfiles in termio(s).h (No, I
  32. don't complain about missing commentation ... :-)
  33. And of course, now it's able to telnet to our machine, but your terminal will
  34. be screwed then ...
  35.  
  36. Greetings, Herp.
  37.