vfs: RIP SMB_VFS_GET_DOS_ATTRIBUTES()
[samba.git] / source3 / modules / vfs_catia.c
index 85ef5cfb0d409d81e26bc86acf9c13d732bba161..51beb6b424d8fcf62e1a70ae553373c9019e6a8f 100644 (file)
@@ -2300,45 +2300,6 @@ static NTSTATUS catia_readdir_attr(struct vfs_handle_struct *handle,
        return status;
 }
 
-static NTSTATUS catia_get_dos_attributes(struct vfs_handle_struct *handle,
-                                        struct smb_filename *smb_fname,
-                                        uint32_t *dosmode)
-{
-       char *mapped_name = NULL;
-       const char *path = smb_fname->base_name;
-       struct smb_filename *mapped_smb_fname = NULL;
-       NTSTATUS status;
-
-       status = catia_string_replace_allocate(handle->conn,
-                               path, &mapped_name, vfs_translate_to_unix);
-       if (!NT_STATUS_IS_OK(status)) {
-               errno = map_errno_from_nt_status(status);
-               return status;
-       }
-       mapped_smb_fname = synthetic_smb_fname(talloc_tos(),
-                                       mapped_name,
-                                       NULL,
-                                       &smb_fname->st,
-                                       smb_fname->twrp,
-                                       smb_fname->flags);
-       if (mapped_smb_fname == NULL) {
-               TALLOC_FREE(mapped_name);
-               return NT_STATUS_NO_MEMORY;
-       }
-
-       status = SMB_VFS_NEXT_GET_DOS_ATTRIBUTES(handle,
-                                                mapped_smb_fname,
-                                                dosmode);
-       if (NT_STATUS_IS_OK(status)) {
-               smb_fname->st = mapped_smb_fname->st;
-       }
-
-       TALLOC_FREE(mapped_name);
-       TALLOC_FREE(mapped_smb_fname);
-
-       return status;
-}
-
 static NTSTATUS catia_set_dos_attributes(struct vfs_handle_struct *handle,
                                         const struct smb_filename *smb_fname,
                                         uint32_t dosmode)
@@ -2502,7 +2463,6 @@ static struct vfs_fn_pointers vfs_catia_fns = {
        .strict_lock_check_fn = catia_strict_lock_check,
        .translate_name_fn = catia_translate_name,
        .fsctl_fn = catia_fsctl,
-       .get_dos_attributes_fn = catia_get_dos_attributes,
        .get_dos_attributes_send_fn = vfs_not_implemented_get_dos_attributes_send,
        .get_dos_attributes_recv_fn = vfs_not_implemented_get_dos_attributes_recv,
        .set_dos_attributes_fn = catia_set_dos_attributes,