summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-17 23:04:06 +0000
committerderaadt <deraadt@openbsd.org>2015-10-17 23:04:06 +0000
commit7c6a69203e0d1e3f128960392e0cac010282ecbc (patch)
tree094d5242c4ba7cee739ecf90732f94d6f9e95056
parentUnify TIOCGPGRP/TIOCGWINSZ/TIOCGWINSZ behaviour regarding ENOTTY return. (diff)
downloadwireguard-openbsd-7c6a69203e0d1e3f128960392e0cac010282ecbc.tar.xz
wireguard-openbsd-7c6a69203e0d1e3f128960392e0cac010282ecbc.zip
better wording in a comment
-rw-r--r--sys/kern/kern_pledge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c
index c08bf63c276..203f901fee1 100644
--- a/sys/kern/kern_pledge.c
+++ b/sys/kern/kern_pledge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_pledge.c,v 1.45 2015/10/17 23:01:37 deraadt Exp $ */
+/* $OpenBSD: kern_pledge.c,v 1.46 2015/10/17 23:04:06 deraadt Exp $ */
/*
* Copyright (c) 2015 Nicholas Marriott <nicm@openbsd.org>
@@ -1056,7 +1056,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
switch (com) {
case TIOCGETA:
case TIOCGPGRP:
- case TIOCGWINSZ: /* ENOTTY for return for non-tty */
+ case TIOCGWINSZ: /* ENOTTY return for non-tty */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
return (ENOTTY);
@@ -1111,7 +1111,7 @@ pledge_ioctl_check(struct proc *p, long com, void *v)
/* FALLTHROUGH */
case TIOCGPGRP:
case TIOCGETA:
- case TIOCGWINSZ: /* ENOTTY for return for non-tty */
+ case TIOCGWINSZ: /* ENOTTY return for non-tty */
if (fp->f_type == DTYPE_VNODE && (vp->v_flag & VISTTY))
return (0);
return (ENOTTY);