From: Ralph Boehme Date: Wed, 4 Nov 2020 09:09:34 +0000 (+0100) Subject: smbd: in reply_setatr() pass pathref fsp to smb_set_file_time() X-Git-Tag: samba-4.14.0rc1~305 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc0e740ae0f739968478161b41379d1f12fb25e2;p=thirdparty%2Fsamba.git smbd: in reply_setatr() pass pathref fsp to smb_set_file_time() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 43e23635ba9..5f7be3727ac 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1517,7 +1517,7 @@ void reply_setatr(struct smb_request *req) ft.mtime = time_t_to_full_timespec(mtime); - status = smb_set_file_time(conn, NULL, smb_fname, &ft, true); + status = smb_set_file_time(conn, smb_fname->fsp, smb_fname, &ft, true); if (!NT_STATUS_IS_OK(status)) { reply_nterror(req, status); goto out;