]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: added def for ACCESSPERMS when undefined 9835/head
authorJohn Coyle <dx9err@gmail.com>
Fri, 26 Feb 2016 15:48:51 +0000 (10:48 -0500)
committerJohn Coyle <dx9err@gmail.com>
Tue, 21 Jun 2016 01:04:40 +0000 (21:04 -0400)
musl libc does not provide ACCESSPERMS

Signed-off-by: John Coyle <dx9err@gmail.com>
src/client/posix_acl.cc

index c5277ab7b060e55a92bd51cae8edeccd3f311fca..d92d17a8f8582a911816c5e2c506bdba0170d7cf 100644 (file)
@@ -3,6 +3,10 @@
 #include "posix_acl.h"
 #include "UserGroups.h"
 
+#ifndef ACCESSPERMS
+#define ACCESSPERMS (S_IRWXU|S_IRWXG|S_IRWXO)
+#endif
+
 int posix_acl_check(const void *xattr, size_t size)
 {
   const acl_ea_header *header;