Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/cddl/osnet/sys/kern Add FREAD for the benefit of ka...



details:   https://anonhg.NetBSD.org/src/rev/013fd2615be5
branches:  trunk
changeset: 779032:013fd2615be5
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 26 23:34:09 2012 +0000

description:
Add FREAD for the benefit of kauth!

diffstat:

 external/cddl/osnet/sys/kern/kobj.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d81c7c9fd6c9 -r 013fd2615be5 external/cddl/osnet/sys/kern/kobj.c
--- a/external/cddl/osnet/sys/kern/kobj.c       Thu Apr 26 22:09:53 2012 +0000
+++ b/external/cddl/osnet/sys/kern/kobj.c       Thu Apr 26 23:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kobj.c,v 1.2 2011/01/21 12:24:24 pooka Exp $   */
+/*     $NetBSD: kobj.c,v 1.3 2012/04/26 23:34:09 christos Exp $        */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 /* __FBSDID("$FreeBSD: src/sys/compat/opensolaris/kern/opensolaris_kobj.c,v 1.4 2007/05/31 11:51:49 kib Exp $"); */
-__KERNEL_RCSID(0, "$NetBSD: kobj.c,v 1.2 2011/01/21 12:24:24 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kobj.c,v 1.3 2012/04/26 23:34:09 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/systm.h>
@@ -97,7 +97,7 @@
 {
        vnode_t *vp;
 
-       if (vn_open(file, UIO_SYSSPACE, FCREAT, 0, &vp, CRCREAT, 0) != 0) {
+       if (vn_open(file, UIO_SYSSPACE, FREAD|FCREAT, 0, &vp, CRCREAT, 0) != 0) {
                return NULL;
        }
        return vp;



Home | Main Index | Thread Index | Old Index