summaryrefslogtreecommitdiff
path: root/sys/dev/cons.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cons.c')
-rw-r--r--sys/dev/cons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/cons.c b/sys/dev/cons.c
index bfeec64913b..7d4f72dffea 100644
--- a/sys/dev/cons.c
+++ b/sys/dev/cons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cons.c,v 1.12 2003/06/16 18:44:11 millert Exp $ */
+/* $OpenBSD: cons.c,v 1.13 2003/08/15 20:32:16 tedu Exp $ */
/* $NetBSD: cons.c,v 1.30 1996/04/08 19:57:30 jonathan Exp $ */
/*
@@ -179,7 +179,7 @@ cnioctl(dev, cmd, data, flag, p)
* output from the "virtual" console.
*/
if (cmd == TIOCCONS && constty != NULL) {
- error = suser(p->p_ucred, (u_short *) NULL);
+ error = suser(p, SUSER_NOACCT);
if (error)
return (error);
constty = NULL;