home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / bsd / 10214 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  1.3 KB

  1. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!ira.uka.de!math.fu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!fuug!kiae!demos!newsserv
  2. From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su>
  3. Newsgroups: comp.unix.bsd
  4. Subject: [386bsd] Patch tty.c to fix TIOCSTI simulate 8-bit chars
  5. Date: Mon, 14 Dec 92 22:35:47 +0300
  6. Distribution: world
  7. Organization: Ha-oh-lahm Yetzirah
  8. Message-ID: <EDJ8EBhW50@astral.msk.su>
  9. Sender: news-service@newcom.kiae.su
  10. Reply-To: ache@astral.msk.su
  11. Lines: 27
  12.  
  13. TIOCSTI produce nulls instead of 8-bit chars, here simple fix:
  14.  
  15. *** tty.c.was    Thu Dec  3 06:25:38 1992
  16. --- tty.c    Mon Dec 14 22:23:52 1992
  17. ***************
  18. *** 434,440 ****
  19.               return (EPERM);
  20.           if (p->p_ucred->cr_uid && !isctty(p, tp))
  21.               return (EACCES);
  22. !         (*linesw[tp->t_line].l_rint)(*(char *)data, tp);
  23.           break;
  24.   
  25.       case TIOCGETA: {
  26. --- 434,440 ----
  27.               return (EPERM);
  28.           if (p->p_ucred->cr_uid && !isctty(p, tp))
  29.               return (EACCES);
  30. !         (*linesw[tp->t_line].l_rint)(*(unsigned char *)data, tp);
  31.           break;
  32.   
  33.       case TIOCGETA: {
  34. -- 
  35. In-This-Life:  Andrew A. Chernov    |  "Hay mas dicha, mas contento
  36. Internet:      ache@astral.msk.su   |  "Que adorar una hermosura
  37. Organization:  The RELCOM Corp.,    |  "Brujuleada entre los lejos
  38.                Moscow, Russia       |  "De lo imposible?!"  (Calderon)
  39.  
  40.