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

  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:59:09 CET
  4. From: <K111114@ALIJKU11.BITNET>
  5. Message-ID: <92324.215909K111114@ALIJKU11.BITNET>
  6. Newsgroups: comp.os.linux
  7. Subject:    telnetd: BUG FIX (contd)
  8. Lines: 11
  9.  
  10. oh :-)
  11. forgot to ask WHY the bugfix in the article before would work, what code the
  12. compiler generates for something like "line = "/dev/ptyXX" so that the r/o
  13. textsegment is violated. Since "line" is a char *, and "/dev/ptyXX" is a
  14. string-constant, why should there be any problems ? Either the stringconstant
  15. is malloc'ed again, (should point now to the datasegment), or "line" is
  16. assigned the reference to the string-constant. Only explanation now is that
  17. the string-constant is compiled into the textsegment | Is that true ? *shrug*
  18. Does the compiler really put it in the text? Not so nice ....
  19.  
  20. Herp.
  21.