emulators/virtualbox-ose-additons: Fix build on recent head
Fix build after head commit b4a58fbf640409a1 (vfs: remove cn_thread)
MFH: 2021Q4
(cherry picked from commit 21d79d6e16
)
This commit is contained in:
parent
93dea9a1ea
commit
2040f3e693
1 changed files with 5 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
--- src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vnops.c.orig 2021-07-28 16:16:27 UTC
|
||||
+++ src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vnops.c
|
||||
@@ -14,228 +14,1350 @@
|
||||
@@ -14,228 +14,1354 @@
|
||||
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
||||
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
||||
*/
|
||||
|
@ -1397,7 +1397,11 @@
|
|||
+ cnp->cn_flags & DOWHITEOUT &&
|
||||
+ cnp->cn_flags & ISWHITEOUT))) {
|
||||
+ error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred,
|
||||
+#if __FreeBSD_version < 1400037
|
||||
+ cnp->cn_thread);
|
||||
+#else
|
||||
+ curthread);
|
||||
+#endif
|
||||
+ if (error != 0)
|
||||
+ goto out;
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue