Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!news.hawaii.edu!ames!sun-barr!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 From: "Andrew A. Chernov, Black Mage" <ache@astral.msk.su> Newsgroups: comp.unix.bsd Subject: [386bsd] Patch tty.c to fix TIOCSTI simulate 8-bit chars Date: Mon, 14 Dec 92 22:35:47 +0300 Distribution: world Organization: Ha-oh-lahm Yetzirah Message-ID: <EDJ8EBhW50@astral.msk.su> Sender: news-service@newcom.kiae.su Reply-To: ache@astral.msk.su Lines: 27 TIOCSTI produce nulls instead of 8-bit chars, here simple fix: *** tty.c.was Thu Dec 3 06:25:38 1992 --- tty.c Mon Dec 14 22:23:52 1992 *************** *** 434,440 **** return (EPERM); if (p->p_ucred->cr_uid && !isctty(p, tp)) return (EACCES); ! (*linesw[tp->t_line].l_rint)(*(char *)data, tp); break; case TIOCGETA: { --- 434,440 ---- return (EPERM); if (p->p_ucred->cr_uid && !isctty(p, tp)) return (EACCES); ! (*linesw[tp->t_line].l_rint)(*(unsigned char *)data, tp); break; case TIOCGETA: { -- In-This-Life: Andrew A. Chernov | "Hay mas dicha, mas contento Internet: ache@astral.msk.su | "Que adorar una hermosura Organization: The RELCOM Corp., | "Brujuleada entre los lejos Moscow, Russia | "De lo imposible?!" (Calderon)