]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove now unneccessary wrapper vfs_fget_dos_attributes()
authorRalph Boehme <slow@samba.org>
Fri, 10 Nov 2023 09:01:46 +0000 (10:01 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 14 Nov 2023 00:10:19 +0000 (00:10 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Nov 14 00:10:19 UTC 2023 on atb-devel-224

source3/include/proto.h
source3/smbd/dosmode.c
source3/smbd/open.c
source3/smbd/vfs.c

index bbb089a5908c6dd6467ed8e575c9a8e45c791092..06ad7fb508a754784befb4e41437144cb8051cd6 100644 (file)
@@ -82,9 +82,6 @@ NTSTATUS vfs_at_fspcwd(TALLOC_CTX *mem_ctx,
                       struct connection_struct *conn,
                       struct files_struct **_fsp);
 
-NTSTATUS vfs_fget_dos_attributes(struct files_struct *fsp,
-                                uint32_t *dosmode);
-
 #include "source3/lib/interface.h"
 
 /* The following definitions come from lib/ldap_debug_handler.c  */
index 5b695a1d6e303aeed91943c01c63bb4515d53362..229a85a91711caf889a267fb0ed1e9ce40c53f73 100644 (file)
@@ -715,7 +715,9 @@ uint32_t fdos_mode(struct files_struct *fsp)
        }
 
        /* Get the DOS attributes via the VFS if we can */
-       status = vfs_fget_dos_attributes(fsp, &result);
+       status = SMB_VFS_FGET_DOS_ATTRIBUTES(fsp->conn,
+                                            metadata_fsp(fsp),
+                                            &result);
        if (!NT_STATUS_IS_OK(status)) {
                /*
                 * Only fall back to using UNIX modes if we get NOT_IMPLEMENTED.
index 87a252a3d1bbc38ab1c4c4b677cddef583ab2ca2..cb1e2adbf1e3b03a5e54edf23d6909ec85662da8 100644 (file)
@@ -3906,7 +3906,10 @@ static NTSTATUS open_file_ntcreate(connection_struct *conn,
                         */
                        uint32_t attr = 0;
 
-                       status = vfs_fget_dos_attributes(smb_fname->fsp, &attr);
+                       status = SMB_VFS_FGET_DOS_ATTRIBUTES(
+                               conn,
+                               metadata_fsp(smb_fname->fsp),
+                               &attr);
                        if (NT_STATUS_IS_OK(status)) {
                                existing_dos_attributes = attr;
                        }
index 3f984036ba31185f6f7127d6ee409194f77e68b3..3a1d18d6676e206e4792fdc1c06b13ecd126d749 100644 (file)
@@ -1297,19 +1297,6 @@ NTSTATUS vfs_at_fspcwd(TALLOC_CTX *mem_ctx,
        return NT_STATUS_OK;
 }
 
-NTSTATUS vfs_fget_dos_attributes(struct files_struct *fsp,
-                                uint32_t *dosmode)
-{
-       NTSTATUS status;
-
-       /*
-        * Make sure to pass the base_fsp to the VFS
-        */
-       status = SMB_VFS_FGET_DOS_ATTRIBUTES(
-               fsp->conn, metadata_fsp(fsp), dosmode);
-       return status;
-}
-
 static struct smb_vfs_deny_state *smb_vfs_deny_global;
 
 void smb_vfs_assert_allowed(void)