summaryrefslogtreecommitdiffstats
path: root/sys/miscfs
diff options
context:
space:
mode:
authorvisa <visa@openbsd.org>2018-06-21 14:17:23 +0000
committervisa <visa@openbsd.org>2018-06-21 14:17:23 +0000
commit5ff674a53d1bd90c97d15869f166aed62122ee98 (patch)
tree0e30814d41da44fa7f62bc5c137becf5a3652f99 /sys/miscfs
parentUse atomic operations for updating cred structure reference counts (diff)
downloadwireguard-openbsd-5ff674a53d1bd90c97d15869f166aed62122ee98.tar.xz
wireguard-openbsd-5ff674a53d1bd90c97d15869f166aed62122ee98.zip
Drop redundant "node == parent node" checks from VOP_RMDIR()
implementations. Rely on the VFS layer to do the checking. OK mpi@, helg@
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/fuse/fuse_vnops.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/sys/miscfs/fuse/fuse_vnops.c b/sys/miscfs/fuse/fuse_vnops.c
index 0c2fc2e4e33..051c6335f26 100644
--- a/sys/miscfs/fuse/fuse_vnops.c
+++ b/sys/miscfs/fuse/fuse_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_vnops.c,v 1.48 2018/06/20 10:57:39 helg Exp $ */
+/* $OpenBSD: fuse_vnops.c,v 1.49 2018/06/21 14:17:23 visa Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -1399,15 +1399,6 @@ fusefs_rmdir(void *v)
goto out;
}
- /*
- * No rmdir "." please.
- */
- if (dp == ip) {
- vrele(dvp);
- vput(vp);
- return (EINVAL);
- }
-
VN_KNOTE(dvp, NOTE_WRITE | NOTE_LINK);
fbuf = fb_setup(cnp->cn_namelen + 1, dp->ufs_ino.i_number,