mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
Updated server-Stored_ACLs patchset
Remove warnings.
This commit is contained in:
parent
a79a08a6f7
commit
0e1d830578
@ -92,7 +92,7 @@ index e61de8283b8..01e187b8c00 100644
|
||||
+{
|
||||
+ char buffer[XATTR_SIZE_MAX];
|
||||
+ int present, len;
|
||||
+ const ACL *dacl;
|
||||
+ const struct acl *dacl;
|
||||
+
|
||||
+ /* there's no point in storing the security descriptor if there's no DACL */
|
||||
+ if (!sd) return;
|
||||
|
@ -44,16 +44,16 @@ index 01e187b8c00..91900429a49 100644
|
||||
+/* Convert generic rights into standard access rights */
|
||||
+static void convert_generic_sd( struct security_descriptor *sd )
|
||||
+{
|
||||
+ const ACL *dacl;
|
||||
+ const struct acl *dacl;
|
||||
+ int present;
|
||||
+
|
||||
+ dacl = sd_get_dacl( sd, &present );
|
||||
+ if (present && dacl)
|
||||
+ {
|
||||
+ const ACE_HEADER *ace = (const ACE_HEADER *)(dacl + 1);
|
||||
+ const struct ace *ace = (const struct ace *)(dacl + 1);
|
||||
+ ULONG i;
|
||||
+
|
||||
+ for (i = 0; i < dacl->AceCount; i++, ace = ace_next( ace ))
|
||||
+ for (i = 0; i < dacl->count; i++, ace = ace_next( ace ))
|
||||
+ {
|
||||
+ DWORD *mask = (DWORD *)(ace + 1);
|
||||
+ *mask = map_access( *mask, &file_type.mapping );
|
||||
|
Loading…
Reference in New Issue
Block a user