summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 16:35:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2015-10-10 16:35:09 +0000
commit9133cb142426d2d52a20d2c52d98e3fd9a10118b (patch)
tree0c9b34cc605ce2f15d785a32db792b7128e49bc2
parentfe89870e0ca2369398f6af50f27e2904d33c9dab (diff)
shuffle #ifdef TIOCSTI block to avoid a future /*FALLTHROUGH*/ mistake.
-rw-r--r--sys/kern/kern_event.c2
-rw-r--r--sys/kern/kern_pledge.c9
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/kern/kern_event.c b/sys/kern/kern_event.c
index 73ca39e01f3..b0f6c8ecd74 100644
--- a/sys/kern/kern_event.c
+++ b/sys/kern/kern_event.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_event.c,v 1.63 2015/10/09 11:47:30 deraadt Exp $ */
+/* $OpenBSD: kern_event.c,v 1.64 2015/10/10 16:35:08 deraadt Exp $ */
/*-
* Copyright (c) 1999,2000,2001 Jonathan Lemon <jlemon@FreeBSD.org>
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index 990f8f4a338..f6394c6872c 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.8 2015/10/10 14:48:03 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.9 2015/10/10 16:35:08 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1074,11 +1074,14 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
return (ENOTTY);
- case TIOCGPGRP:
- case TIOCGWINSZ: /* various programs */
#if notyet
case TIOCSTI: /* ksh? csh? */
+ if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
+ return (0);
+ break;
#endif
+ case TIOCGPGRP:
+ case TIOCGWINSZ: /* various programs */
case TIOCSBRK: /* cu */
case TIOCCDTR: /* cu */
case TIOCSETA: /* cu, ... */