From c600976b301c1330eda372aab6c742d13704a4c9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 17 Oct 2015 23:04:07 +0000 Subject: better wording in a comment --- sys/kern/kern_pledge.c | 6 +++--- 1 file 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 @@ -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); -- cgit v1.2.3