Module Name:    src
Committed By:   elad
Date:           Mon Apr 20 21:29:01 UTC 2009

Modified Files:
        src/sys/fs/efs: efs_vfsops.c

Log Message:
Pass VREAD instead of FREAD to VOP_ACCESS().

Okay chris...@.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/fs/efs/efs_vfsops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/fs/efs/efs_vfsops.c
diff -u src/sys/fs/efs/efs_vfsops.c:1.17 src/sys/fs/efs/efs_vfsops.c:1.18
--- src/sys/fs/efs/efs_vfsops.c:1.17	Mon Dec  1 14:34:50 2008
+++ src/sys/fs/efs/efs_vfsops.c	Mon Apr 20 21:29:01 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: efs_vfsops.c,v 1.17 2008/12/01 14:34:50 pooka Exp $	*/
+/*	$NetBSD: efs_vfsops.c,v 1.18 2009/04/20 21:29:01 elad Exp $	*/
 
 /*
  * Copyright (c) 2006 Stephen M. Rumble <rum...@ephemeral.org>
@@ -17,7 +17,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efs_vfsops.c,v 1.17 2008/12/01 14:34:50 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efs_vfsops.c,v 1.18 2009/04/20 21:29:01 elad Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -214,7 +214,7 @@
 	 * permissions on the device.
 	 */
 	if (kauth_authorize_generic(l->l_cred, KAUTH_GENERIC_ISSUSER, NULL)) {
-		err = VOP_ACCESS(devvp, mode, l->l_cred);
+		err = VOP_ACCESS(devvp, VREAD, l->l_cred);
 		if (err) {
 			vput(devvp);
 			return (err);

Reply via email to