summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-04-13 13:12:12 +0000
committerkato <kato@FreeBSD.org>1997-04-13 13:12:12 +0000
commite39250c28c1759d0a06f9e7dddf01ee1511770bd (patch)
treefda1c0cbb7b00cf2776b676cd5471dd8a40b174c /sys/fs
parent992f8c8d6f9be65de6347b179d2f1e7f201b3306 (diff)
downloadFreeBSD-src-e39250c28c1759d0a06f9e7dddf01ee1511770bd.zip
FreeBSD-src-e39250c28c1759d0a06f9e7dddf01ee1511770bd.tar.gz
Access correct union mount point in union_access.
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/unionfs/union_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
index b97cc79..9658eb1 100644
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* @(#)union_vnops.c 8.32 (Berkeley) 6/23/95
- * $Id: union_vnops.c,v 1.20 1997/03/23 03:37:00 bde Exp $
+ * $Id: union_vnops.c,v 1.21 1997/04/13 06:29:13 phk Exp $
*/
#include <sys/param.h>
@@ -612,7 +612,7 @@ union_access(ap)
ap->a_vp = vp;
error = VCALL(vp, VOFFSET(vop_access), ap);
if (error == 0) {
- struct union_mount *um = MOUNTTOUNIONMOUNT(vp->v_mount);
+ struct union_mount *um = MOUNTTOUNIONMOUNT(ap->a_vp->v_mount);
if (um->um_op == UNMNT_BELOW) {
ap->a_cred = um->um_cred;
OpenPOWER on IntegriCloud