sync with OpenBSD -current
This commit is contained in:
parent
fa20b4dfa4
commit
56a087cff9
61 changed files with 2001 additions and 1682 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: fuse_vnops.c,v 1.67 2023/09/08 20:00:28 mvs Exp $ */
|
||||
/* $OpenBSD: fuse_vnops.c,v 1.68 2024/03/25 17:57:07 guenther Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
|
||||
*
|
||||
|
@ -646,16 +646,6 @@ fusefs_link(void *v)
|
|||
error = ENOSYS;
|
||||
goto out2;
|
||||
}
|
||||
if (vp->v_type == VDIR) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
error = EPERM;
|
||||
goto out2;
|
||||
}
|
||||
if (dvp->v_mount != vp->v_mount) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
error = EXDEV;
|
||||
goto out2;
|
||||
}
|
||||
if (dvp != vp && (error = vn_lock(vp, LK_EXCLUSIVE))) {
|
||||
VOP_ABORTOP(dvp, cnp);
|
||||
goto out2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue