- if ((acl = smb_acl_to_posix(theacl)) == NULL) {
- return -1;
- }
- res = acl_set_file(smb_fname->base_name, acl_type, acl);
- if (res != 0) {
- DEBUG(10, ("acl_set_file failed: %s\n", strerror(errno)));
- }
- acl_free(acl);
- return res;
-}
-
-int posixacl_sys_acl_set_fd(vfs_handle_struct *handle,
- files_struct *fsp,
- SMB_ACL_TYPE_T type,
- SMB_ACL_T theacl)
-{
- int res;
- acl_t acl = smb_acl_to_posix(theacl);
- int fd = fsp_get_pathref_fd(fsp);
-
- if (acl == NULL) {
- return -1;
- }
-
- if (!fsp->fsp_flags.is_pathref) {