36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
diff -ru open-vm-tools-10.3.0-8931395-orig/hgfsmounter/hgfsmounter.c open-vm-tools-10.3.0-8931395/hgfsmounter/hgfsmounter.c
|
|
--- open-vm-tools-10.3.0-8931395-orig/hgfsmounter/hgfsmounter.c 2018-06-23 03:03:28.000000000 -0700
|
|
+++ open-vm-tools-10.3.0-8931395/hgfsmounter/hgfsmounter.c 2019-02-02 15:22:17.639393841 -0800
|
|
@@ -514,11 +514,13 @@
|
|
HgfsMountInfo *mountInfo, // OUT: mount data
|
|
int *flags) // OUT: mount flags
|
|
{
|
|
+ unsigned short fmask = 0;
|
|
ASSERT(option);
|
|
ASSERT(mountInfo);
|
|
|
|
- if (ParseMask(option, &mountInfo->fmask)) {
|
|
- LOG("Setting mount fmask to %o\n", mountInfo->fmask);
|
|
+ if (ParseMask(option, &fmask)) {
|
|
+ LOG("Setting mount fmask to %o\n", fmask);
|
|
+ mountInfo->fmask = fmask;
|
|
return TRUE;
|
|
}
|
|
|
|
@@ -548,11 +550,13 @@
|
|
HgfsMountInfo *mountInfo, // OUT: mount data
|
|
int *flags) // OUT: mount flags
|
|
{
|
|
+ unsigned short dmask = 0;
|
|
ASSERT(option);
|
|
ASSERT(mountInfo);
|
|
|
|
- if (ParseMask(option, &mountInfo->dmask)) {
|
|
- LOG("Setting mount dmask to %o\n", mountInfo->dmask);
|
|
+ if (ParseMask(option, &dmask)) {
|
|
+ LOG("Setting mount dmask to %o\n", dmask);
|
|
+ mountInfo->dmask = dmask;
|
|
return TRUE;
|
|
}
|
|
|