diff options
Diffstat (limited to 'main/open-vm-tools/posix-perms.patch')
-rw-r--r-- | main/open-vm-tools/posix-perms.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/main/open-vm-tools/posix-perms.patch b/main/open-vm-tools/posix-perms.patch new file mode 100644 index 0000000000..ddffb20cbb --- /dev/null +++ b/main/open-vm-tools/posix-perms.patch @@ -0,0 +1,33 @@ +--- 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 <sys/stat.h>. + */ +-#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 + + |