aboutsummaryrefslogtreecommitdiffstats
path: root/main/open-vm-tools/posix-perms.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-07-24 09:46:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-07-24 13:59:52 +0000
commit06f984daee0981ccfce8ae0a8b8b663a1c6667f1 (patch)
tree645e47ae4aa142c8c3d25954c4b3982dbfd639b7 /main/open-vm-tools/posix-perms.patch
parentc9f2cd8c8ebf69fd3447aa4ecff56f2c04799ced (diff)
downloadaports-06f984daee0981ccfce8ae0a8b8b663a1c6667f1.tar.bz2
aports-06f984daee0981ccfce8ae0a8b8b663a1c6667f1.tar.xz
main/open-vm-tools: upgrade to 9.4.6 and fix build with musl
Diffstat (limited to 'main/open-vm-tools/posix-perms.patch')
-rw-r--r--main/open-vm-tools/posix-perms.patch33
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
+
+