diff options
author | Jeremy Allison <jra@samba.org> | 2018-05-17 11:49:55 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2018-05-25 18:39:25 +0200 |
commit | cfbe3048afbb6557852b7f887c32f10bf283e7ae (patch) | |
tree | f853c9a07bcc00b6e4ec53e8f6cf6d7bd681289c /source3/smbd/posix_acls.c | |
parent | 5bbb8310417563b17d83bb9ea9d08940d26e90e1 (diff) | |
download | samba-cfbe3048afbb6557852b7f887c32f10bf283e7ae.tar.gz |
s3: posix_acls: Remove dead functions fchmod_acl()/chmod_acl().
No longer used.
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/smbd/posix_acls.c')
-rw-r--r-- | source3/smbd/posix_acls.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 6396f818176..8c57e7a959a 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -4103,19 +4103,6 @@ static int copy_access_posix_acl(connection_struct *conn, } /**************************************************************************** - Do a chmod by setting the ACL USER_OBJ, GROUP_OBJ and OTHER bits in an ACL - and set the mask to rwx. Needed to preserve complex ACLs set by NT. - Note that name is in UNIX character set. -****************************************************************************/ - -int chmod_acl(connection_struct *conn, - const struct smb_filename *smb_fname, - mode_t mode) -{ - return copy_access_posix_acl(conn, smb_fname, smb_fname, mode); -} - -/**************************************************************************** Check for an existing default POSIX ACL on a directory. ****************************************************************************/ @@ -4165,31 +4152,6 @@ int inherit_access_posix_acl(connection_struct *conn, } /**************************************************************************** - Do an fchmod by setting the ACL USER_OBJ, GROUP_OBJ and OTHER bits in an ACL - and set the mask to rwx. Needed to preserve complex ACLs set by NT. -****************************************************************************/ - -int fchmod_acl(files_struct *fsp, mode_t mode) -{ - connection_struct *conn = fsp->conn; - SMB_ACL_T posix_acl = NULL; - int ret = -1; - - if ((posix_acl = SMB_VFS_SYS_ACL_GET_FD(fsp, talloc_tos())) == NULL) - return -1; - - if ((ret = chmod_acl_internals(conn, posix_acl, mode)) == -1) - goto done; - - ret = SMB_VFS_SYS_ACL_SET_FD(fsp, posix_acl); - - done: - - TALLOC_FREE(posix_acl); - return ret; -} - -/**************************************************************************** Map from wire type to permset. ****************************************************************************/ |