return ret;
}
-/****************************************************************************
- Userspace check for write access.
-****************************************************************************/
-
-bool can_write_to_file(connection_struct *conn,
- struct files_struct *dirfsp,
- const struct smb_filename *smb_fname)
-{
- SMB_ASSERT(dirfsp == conn->cwd_fsp);
- return NT_STATUS_IS_OK(smbd_check_access_rights(conn,
- dirfsp,
- smb_fname,
- false,
- FILE_WRITE_DATA));
-}
-
/****************************************************************************
Userspace check for write access to fsp.
****************************************************************************/
bool can_delete_file_in_directory(connection_struct *conn,
struct files_struct *dirfsp,
const struct smb_filename *smb_fname);
-bool can_write_to_file(connection_struct *conn,
- struct files_struct *dirfsp,
- const struct smb_filename *smb_fname);
bool can_write_to_fsp(struct files_struct *fsp);
bool directory_has_default_acl_fsp(struct files_struct *fsp);
NTSTATUS can_set_delete_on_close(files_struct *fsp, uint32_t dosmode);