home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / bugs / 4bsd / 228 < prev    next >
Encoding:
Text File  |  1992-11-18  |  1.7 KB  |  61 lines

  1. Newsgroups: comp.bugs.4bsd
  2. Path: sparky!uunet!deshaw.com!christos
  3. From: christos@deshaw.com (Christos Zoulas)
  4. Subject: Re:  Bug in 386BSD, Net-2 telnets, Berkeley telnet.91.03.25: "send ayt" doesn' t work
  5. Message-ID: <BxxJIA.AxA@deshaw.com>
  6. Sender: usenet@deshaw.com
  7. Nntp-Posting-Host: prefect
  8. Organization: D. E. Shaw & Co.
  9. References: <1992Nov17.041308.5252@CSD-NewsHost.Stanford.EDU> <1ebvb1INNe3t@ef2007.efhd.ford.com>
  10. Date: Wed, 18 Nov 1992 20:56:33 GMT
  11. Lines: 48
  12.  
  13. In article <1ebvb1INNe3t@ef2007.efhd.ford.com> "Mike O'Connor" <mjo@fmsrl7.srl.ford.com> writes:
  14. >In article <1992Nov17.041308.5252@CSD-NewsHost.Stanford.EDU>
  15. >jonathan@CS.Stanford.EDU (Jonathan Stone) writes:
  16. >
  17. >:Index::
  18. >:    telnet SEND command broken in client (e.g., SEND AYT)
  19. >
  20. >For what it's worth, the bug appears in BSDI Gamma as well.
  21. >
  22.  
  23. And here's the patch I sent to Keith Bostic...
  24.  
  25. As you can see by inspecting the code, the variable 'what' is never
  26. initialized...
  27.  
  28. christos
  29.  
  30. *** /tmp/T0a29914    Wed Nov 18 15:54:58 1992
  31. --- commands.c    Mon Oct 26 21:26:30 1992
  32. ***************
  33. *** 291,297 ****
  34.       int  argc;
  35.       char **argv;
  36.   {
  37. -     int what;        /* what we are sending this time */
  38.       int count;        /* how many bytes we are going to need to send */
  39.       int i;
  40.       int question = 0;    /* was at least one argument a question */
  41. --- 291,296 ----
  42. ***************
  43. *** 364,371 ****
  44.                     (s->narg > 1) ? argv[i+2] : 0);
  45.           i += s->narg;
  46.       } else {
  47. !         NET2ADD(IAC, what);
  48. !         printoption("SENT", IAC, what);
  49.       }
  50.       }
  51.       return (count == success);
  52. --- 363,370 ----
  53.                     (s->narg > 1) ? argv[i+2] : 0);
  54.           i += s->narg;
  55.       } else {
  56. !         NET2ADD(IAC, s->what);
  57. !         printoption("SENT", IAC, s->what);
  58.       }
  59.       }
  60.       return (count == success);
  61.