Updated server-Stored_ACLs patchset

Remove warnings.
This commit is contained in:
Alistair Leslie-Hughes 2022-03-05 13:18:54 +11:00
parent a79a08a6f7
commit 0e1d830578
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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 );