From: Ralph Boehme Date: Sun, 21 Aug 2022 11:38:16 +0000 (+0200) Subject: smbd: remove const from smb_fname arg of set_ea_dos_attribute() X-Git-Tag: talloc-2.4.0~1238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ed188e492cfca9fef9266aa66041726f3ab6de5;p=thirdparty%2Fsamba.git smbd: remove const from smb_fname arg of set_ea_dos_attribute() 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 Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index cb3cdc568bd..6fd11b492e8 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -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; diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h index 632ef45ffdf..a0870089925 100644 --- a/source3/smbd/proto.h +++ b/source3/smbd/proto.h @@ -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,