summarylogtreecommitdiffstats
path: root/101-vboxsf-automount.patch
diff options
context:
space:
mode:
authorlilac2020-10-24 11:43:13 +0800
committerlilac2020-10-24 11:43:13 +0800
commit3bf58a7b33d34997442626629365f58b4b3bfa04 (patch)
tree6e13ce6eaaf448f5d39925eab373600857f09e7a /101-vboxsf-automount.patch
parentc4c91160f129b3659e4212dc8bc56dba6e8d1000 (diff)
downloadaur-3bf58a7b33d34997442626629365f58b4b3bfa04.tar.gz
[lilac] updated to 86698-1
Diffstat (limited to '101-vboxsf-automount.patch')
-rw-r--r--101-vboxsf-automount.patch20
1 files changed, 0 insertions, 20 deletions
diff --git a/101-vboxsf-automount.patch b/101-vboxsf-automount.patch
deleted file mode 100644
index 5c665e722c83..000000000000
--- a/101-vboxsf-automount.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-This ghetto patch attempts to fix shared folder automounting for guests running
-Linux 4.16, and also suggests an alternative to mount.vboxsf.
-
-diff -uprb VirtualBox-5.2.8.orig/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp VirtualBox-5.2.8/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
---- VirtualBox-5.2.8.orig/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp 2018-02-26 17:57:30.000000000 +0200
-+++ VirtualBox-5.2.8/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp 2018-04-07 21:00:05.785735622 +0300
-@@ -346,6 +346,13 @@ static int vbsvcAutoMountSharedFolder(co
- "vboxsf",
- fFlags,
- &mntinf);
-+ if (r == -1 && errno == EINVAL)
-+ {
-+ /* Mainline vboxsf accepts regular mount opts. */
-+ char mount_opts[1024];
-+ snprintf(mount_opts, 1024, "gid=%d,dmode=0770,fmode=0770", mntinf.gid);
-+ r = mount(pszShareName, pszMountPoint, "vboxsf", fFlags, mount_opts);
-+ }
- if (r == 0)
- {
- VGSvcVerbose(0, "vbsvcAutoMountWorker: Shared folder '%s' was mounted to '%s'\n", pszShareName, pszMountPoint);