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