--- open-vm-tools-9.4.6-1770165.orig/lib/hgfsServer/hgfsServerLinux.c +++ open-vm-tools-9.4.6-1770165/lib/hgfsServer/hgfsServerLinux.c @@ -89,8 +89,10 @@ * ALLPERMS (mode 07777) and ACCESSPERMS (mode 0777) are not defined in the * Solaris version of . */ -#ifdef sun +#ifndef ACCESSPERMS # define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO) +#endif +#ifndef ALLPERMS # define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO) #endif --- open-vm-tools-9.4.6-1770165.orig/services/plugins/dndcp/dnd/dndLinux.c +++ open-vm-tools-9.4.6-1770165/services/plugins/dndcp/dnd/dndLinux.c @@ -51,7 +51,7 @@ #define DND_ROOTDIR_PERMS (S_IRWXU | S_IRWXG | S_IRWXO) #define DND_STAGINGDIR_PERMS (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) -#ifdef sun +#ifndef ACCESSPERMS #define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) #endif #ifdef __ANDROID__ @@ -60,7 +60,6 @@ */ #define NO_SETMNTENT #define NO_ENDMNTENT -#define ACCESSPERMS (S_IRWXU | S_IRWXG | S_IRWXO) #endif