sysacls: change datatypes to 32 bits
[samba.git] / source3 / include / smb_acls.h
index 73b67af020e75b094917b523ad9783f4b431afa4..c5a2339f1dbbf97ae8fb0435d4d5c9c122b02288 100644 (file)
@@ -27,8 +27,14 @@ struct files_struct;
 struct smb_filename;
 
 typedef int                    SMB_ACL_TYPE_T;
-typedef mode_t                 *SMB_ACL_PERMSET_T;
-typedef mode_t                 SMB_ACL_PERM_T;
+/*
+ * struct smb_acl_entry is defined in IDL as
+ * using mode_t values, pidl always converts these
+ * to uint32_t. Ensure the external type definitions
+ * match.
+ */
+typedef uint32_t               *SMB_ACL_PERMSET_T;
+typedef uint32_t               SMB_ACL_PERM_T;
 
 typedef enum smb_acl_tag_t SMB_ACL_TAG_T;
 typedef struct smb_acl_t *SMB_ACL_T;