]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: remove const from smb_fname arg of set_ea_dos_attribute()
authorRalph Boehme <slow@samba.org>
Sun, 21 Aug 2022 11:38:16 +0000 (13:38 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 29 Aug 2022 17:22:32 +0000 (17:22 +0000)
We need to update the btime of fsp->fsp_name->st.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14215

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/dosmode.c
source3/smbd/proto.h

index cb3cdc568bd57d435fb11c4fda69945296a2b61d..6fd11b492e8969a6fc689479b3f49669c06a1466 100644 (file)
@@ -407,7 +407,7 @@ NTSTATUS fget_ea_dos_attribute(struct files_struct *fsp,
 ****************************************************************************/
 
 NTSTATUS set_ea_dos_attribute(connection_struct *conn,
-                             const struct smb_filename *smb_fname,
+                             struct smb_filename *smb_fname,
                              uint32_t dosmode)
 {
        struct xattr_DOSATTRIB dosattrib;
index 632ef45ffdf8b226ed68c990cb3a2bbe5a7ef5fc..a0870089925dcd2c7cfe833e9cfe938097ef1256 100644 (file)
@@ -287,7 +287,7 @@ bool set_sticky_write_time_fsp(struct files_struct *fsp,
 NTSTATUS fget_ea_dos_attribute(struct files_struct *fsp,
                              uint32_t *pattr);
 NTSTATUS set_ea_dos_attribute(connection_struct *conn,
-                             const struct smb_filename *smb_fname,
+                             struct smb_filename *smb_fname,
                              uint32_t dosmode);
 
 NTSTATUS set_create_timespec_ea(struct files_struct *fsp,