summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-08-13 20:00:59 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-08-15 11:44:50 +1000
commita63a2a72ebb3d9c9a41c5519c85e8b294f1110a8 (patch)
tree137422ed3cc680339a854126df098f03b5d0bb05
parent3d031f2189a29a12320b424a4a192ac4e8b4622c (diff)
downloadsamba-a63a2a72ebb3d9c9a41c5519c85e8b294f1110a8.tar.gz
samba-a63a2a72ebb3d9c9a41c5519c85e8b294f1110a8.tar.bz2
samba-a63a2a72ebb3d9c9a41c5519c85e8b294f1110a8.zip
s3-smbd: Remove unused conn argument from convert_permset_to_mode_t()
-rw-r--r--source3/smbd/posix_acls.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c
index a6982ec109..deef07e900 100644
--- a/source3/smbd/posix_acls.c
+++ b/source3/smbd/posix_acls.c
@@ -855,7 +855,7 @@ static void print_canon_ace_list(const char *name, canon_ace *ace_list)
Map POSIX ACL perms to canon_ace permissions (a mode_t containing only S_(R|W|X)USR bits).
****************************************************************************/
-static mode_t convert_permset_to_mode_t(connection_struct *conn, SMB_ACL_PERMSET_T permset)
+static mode_t convert_permset_to_mode_t(SMB_ACL_PERMSET_T permset)
{
mode_t ret = 0;
@@ -2692,7 +2692,7 @@ static canon_ace *canonicalise_acl(struct connection_struct *conn,
break;
}
case SMB_ACL_MASK:
- acl_mask = convert_permset_to_mode_t(conn, permset);
+ acl_mask = convert_permset_to_mode_t(permset);
continue; /* Don't count the mask as an entry. */
case SMB_ACL_OTHER:
/* Use the Everyone SID */
@@ -2715,7 +2715,7 @@ static canon_ace *canonicalise_acl(struct connection_struct *conn,
ZERO_STRUCTP(ace);
ace->type = tagtype;
- ace->perms = convert_permset_to_mode_t(conn, permset);
+ ace->perms = convert_permset_to_mode_t(permset);
ace->attr = ALLOW_ACE;
ace->trustee = sid;
ace->unix_ug = unix_ug;