summaryrefslogtreecommitdiff
path: root/sys/ntfs/ntfs_vfsops.c
diff options
context:
space:
mode:
authorMartin Natano <natano@cvs.openbsd.org>2016-09-07 17:30:14 +0000
committerMartin Natano <natano@cvs.openbsd.org>2016-09-07 17:30:14 +0000
commitb58afd278adc47db5a35c69c55dff0e573ecf519 (patch)
tree4d96714bed7aad8f0f7f87ec2d6d8b83415e3c6a /sys/ntfs/ntfs_vfsops.c
parenteb54de44c0e4139ae9be76f462a0a6bf231c7237 (diff)
Remove usermount remnants. ok tedu
Diffstat (limited to 'sys/ntfs/ntfs_vfsops.c')
-rw-r--r--sys/ntfs/ntfs_vfsops.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/ntfs/ntfs_vfsops.c b/sys/ntfs/ntfs_vfsops.c
index 5c56fbb94cb..8949522f0a2 100644
--- a/sys/ntfs/ntfs_vfsops.c
+++ b/sys/ntfs/ntfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntfs_vfsops.c,v 1.54 2016/09/01 08:40:39 natano Exp $ */
+/* $OpenBSD: ntfs_vfsops.c,v 1.55 2016/09/07 17:30:12 natano Exp $ */
/* $NetBSD: ntfs_vfsops.c,v 1.7 2003/04/24 07:50:19 christos Exp $ */
/*-
@@ -187,18 +187,6 @@ ntfs_mount(struct mount *mp, const char *path, void *data,
goto error_2;
}
- /*
- * If we are not root, make sure we have permission to access the
- * requested device.
- */
- if (p->p_ucred->cr_uid) {
- vn_lock(devvp, LK_EXCLUSIVE | LK_RETRY, p);
- err = VOP_ACCESS(devvp, VREAD, p->p_ucred, p);
- VOP_UNLOCK(devvp, p);
- if (err)
- goto error_2;
- }
-
if (mp->mnt_flag & MNT_UPDATE) {
#if 0
/*