]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In setup_close_full_information() the posix_open parameter is not needed...
authorNoel Power <noel.power@suse.com>
Wed, 15 Dec 2021 15:36:22 +0000 (15:36 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 15 Dec 2021 18:36:31 +0000 (18:36 +0000)
Signed-off-by: Noel Power <npower@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_close.c

index 6059a1d503c9b2199b814ca5965b10e02ef5ca62..c218d12b6680d1f8beb6508bf933e8a8c413d9e9 100644 (file)
@@ -153,7 +153,6 @@ static void smbd_smb2_request_close_done(struct tevent_req *subreq)
 
 static void setup_close_full_information(connection_struct *conn,
                                struct smb_filename *smb_fname,
-                               bool posix_open,
                                struct timespec *out_creation_ts,
                                struct timespec *out_last_access_ts,
                                struct timespec *out_last_write_ts,
@@ -222,7 +221,6 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
        uint64_t file_size = 0;
        uint32_t dos_attrs = 0;
        uint16_t flags = 0;
-       bool posix_open = false;
 
        *out_creation_ts = (struct timespec){0, SAMBA_UTIME_OMIT};
        *out_last_access_ts = (struct timespec){0, SAMBA_UTIME_OMIT};
@@ -242,7 +240,6 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
                return NT_STATUS_NO_MEMORY;
        }
 
-       posix_open = (fsp->posix_flags & FSP_POSIX_FLAGS_OPEN);
        smb_fname = cp_smb_filename(talloc_tos(), fsp->fsp_name);
        if (smb_fname == NULL) {
                return NT_STATUS_NO_MEMORY;
@@ -259,7 +256,6 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
                 */
                setup_close_full_information(conn,
                                smb_fname,
-                               posix_open,
                                out_creation_ts,
                                out_last_access_ts,
                                out_last_write_ts,
@@ -280,7 +276,6 @@ static NTSTATUS smbd_smb2_close(struct smbd_smb2_request *req,
        if (in_flags & SMB2_CLOSE_FLAGS_FULL_INFORMATION) {
                setup_close_full_information(conn,
                                smb_fname,
-                               posix_open,
                                out_creation_ts,
                                out_last_access_ts,
                                out_last_write_ts,