X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/908b5ff6c75734cb1c729163dc81aa9e670aea44..dadab5e9782225b1752766daee5c789e2266b933:/sys/kern/tty_cons.c diff --git a/sys/kern/tty_cons.c b/sys/kern/tty_cons.c index 04ff56fc08..f14741348a 100644 --- a/sys/kern/tty_cons.c +++ b/sys/kern/tty_cons.c @@ -37,7 +37,7 @@ * * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 * $FreeBSD: src/sys/kern/tty_cons.c,v 1.81.2.4 2001/12/17 18:44:41 guido Exp $ - * $DragonFly: src/sys/kern/tty_cons.c,v 1.3 2003/06/23 17:55:41 dillon Exp $ + * $DragonFly: src/sys/kern/tty_cons.c,v 1.4 2003/06/25 03:55:57 dillon Exp $ */ #include "opt_ddb.h" @@ -388,7 +388,7 @@ cnioctl(dev, cmd, data, flag, td) * output from the "virtual" console. */ if (cmd == TIOCCONS && constty) { - error = suser_xxx(td->td_proc->p_ucred, 0); + error = suser(td); if (error) return (error); constty = NULL;