Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern use VREAD instead of VWRITE, this ioctl is used to ...
details: https://anonhg.NetBSD.org/src/rev/dcf783b11488
branches: trunk
changeset: 545564:dcf783b11488
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 10 22:35:00 2003 +0000
description:
use VREAD instead of VWRITE, this ioctl is used to redirect console output.
diffstat:
sys/kern/tty.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r bf5221b0726c -r dcf783b11488 sys/kern/tty.c
--- a/sys/kern/tty.c Thu Apr 10 22:10:12 2003 +0000
+++ b/sys/kern/tty.c Thu Apr 10 22:35:00 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tty.c,v 1.151 2003/04/10 22:05:57 christos Exp $ */
+/* $NetBSD: tty.c,v 1.152 2003/04/10 22:35:00 christos Exp $ */
/*-
* Copyright (c) 1982, 1986, 1990, 1991, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.151 2003/04/10 22:05:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.152 2003/04/10 22:35:00 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -868,7 +868,7 @@
"/dev/console", p);
if ((error = namei(&nd)) != 0)
return error;
- error = VOP_ACCESS(nd.ni_vp, VWRITE, p->p_ucred, p);
+ error = VOP_ACCESS(nd.ni_vp, VREAD, p->p_ucred, p);
vput(nd.ni_vp);
if (error)
return error;
Home |
Main Index |
Thread Index |
Old Index