Module Name: src Committed By: pooka Date: Fri Jul 3 22:25:51 UTC 2009
Modified Files: src/sys/fs/efs: efs_vnops.c Log Message: Fix utterly botched previous commit. efs compiles now and apprears to work, but the person doing the original change should verify that it actually works like before the change. (hi, elad!) To generate a diff of this commit: cvs rdiff -u -r1.19 -r1.20 src/sys/fs/efs/efs_vnops.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_vnops.c diff -u src/sys/fs/efs/efs_vnops.c:1.19 src/sys/fs/efs/efs_vnops.c:1.20 --- src/sys/fs/efs/efs_vnops.c:1.19 Fri Jul 3 21:17:41 2009 +++ src/sys/fs/efs/efs_vnops.c Fri Jul 3 22:25:51 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: efs_vnops.c,v 1.19 2009/07/03 21:17:41 elad Exp $ */ +/* $NetBSD: efs_vnops.c,v 1.20 2009/07/03 22:25:51 pooka Exp $ */ /* * Copyright (c) 2006 Stephen M. Rumble <rum...@ephemeral.org> @@ -17,7 +17,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: efs_vnops.c,v 1.19 2009/07/03 21:17:41 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: efs_vnops.c,v 1.20 2009/07/03 22:25:51 pooka Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -132,7 +132,7 @@ efs_check_possible(struct vnode *vp, struct efs_inode *eip, mode_t mode) { - if ((ap->a_mode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) + if ((mode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) return (EROFS); return 0; @@ -145,7 +145,7 @@ * Returns 0 on success. */ static int -efs_check_possible(struct vnode *vp, struct efs_inode *eip, mode_t mode, +efs_check_permitted(struct vnode *vp, struct efs_inode *eip, mode_t mode, kauth_cred_t cred) {