summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
74f08c5)
SCCS-vsn: sys/kern/tty_pty.c 6.7
SCCS-vsn: sys/kern/tty.c 6.11
-/* tty.c 6.10 84/08/29 */
+/* tty.c 6.11 84/09/10 */
#include "../machine/reg.h"
#include "../machine/reg.h"
* Simulate typing of a character at the terminal.
*/
case TIOCSTI:
* Simulate typing of a character at the terminal.
*/
case TIOCSTI:
+ if (u.u_uid && (flag & FREAD) == 0)
+ return (EPERM);
if (u.u_uid && u.u_ttyp != tp)
return (EACCES);
(*linesw[tp->t_line].l_rint)(*(char *)data, tp);
if (u.u_uid && u.u_ttyp != tp)
return (EACCES);
(*linesw[tp->t_line].l_rint)(*(char *)data, tp);
-/* tty_pty.c 6.6 84/08/29 */
+/* tty_pty.c 6.7 84/09/10 */
/*
* Pseudo-teletype Driver
/*
* Pseudo-teletype Driver
- error = ttioctl(tp, cmd, data, dev);
+ error = ttioctl(tp, cmd, data, flag);
if (error < 0)
error = ENOTTY;
{ int stop = (tp->t_stopc == ('s'&037) &&
if (error < 0)
error = ENOTTY;
{ int stop = (tp->t_stopc == ('s'&037) &&