mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3: posix_acls: Remove unused 'connection_struct *conn' parameter to map_acl_perms_to_permset().
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
cfbe3048af
commit
a41155b005
@ -889,7 +889,7 @@ static mode_t unix_perms_to_acl_perms(mode_t mode, int r_mask, int w_mask, int x
|
||||
an SMB_ACL_PERMSET_T.
|
||||
****************************************************************************/
|
||||
|
||||
static int map_acl_perms_to_permset(connection_struct *conn, mode_t mode, SMB_ACL_PERMSET_T *p_permset)
|
||||
static int map_acl_perms_to_permset(mode_t mode, SMB_ACL_PERMSET_T *p_permset)
|
||||
{
|
||||
if (sys_acl_clear_perms(*p_permset) == -1)
|
||||
return -1;
|
||||
@ -2918,7 +2918,7 @@ static bool set_canon_ace_list(files_struct *fsp,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (map_acl_perms_to_permset(conn, p_ace->perms, &the_permset) == -1) {
|
||||
if (map_acl_perms_to_permset(p_ace->perms, &the_permset) == -1) {
|
||||
DEBUG(0,("set_canon_ace_list: Failed to create permset for mode (%u) on entry %d. (%s)\n",
|
||||
(unsigned int)p_ace->perms, i, strerror(errno) ));
|
||||
goto fail;
|
||||
@ -2955,7 +2955,7 @@ static bool set_canon_ace_list(files_struct *fsp,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (map_acl_perms_to_permset(conn, S_IRUSR|S_IWUSR|S_IXUSR, &mask_permset) == -1) {
|
||||
if (map_acl_perms_to_permset(S_IRUSR|S_IWUSR|S_IXUSR, &mask_permset) == -1) {
|
||||
DEBUG(0,("set_canon_ace_list: Failed to create mask permset. (%s)\n", strerror(errno) ));
|
||||
goto fail;
|
||||
}
|
||||
@ -4053,7 +4053,7 @@ static int chmod_acl_internals( connection_struct *conn, SMB_ACL_T posix_acl, mo
|
||||
continue;
|
||||
}
|
||||
|
||||
if (map_acl_perms_to_permset(conn, perms, &permset) == -1)
|
||||
if (map_acl_perms_to_permset(perms, &permset) == -1)
|
||||
return -1;
|
||||
|
||||
if (sys_acl_set_permset(entry, permset) == -1)
|
||||
|
Loading…
Reference in New Issue
Block a user