From cc0e740ae0f739968478161b41379d1f12fb25e2 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Wed, 4 Nov 2020 10:09:34 +0100 Subject: [PATCH] smbd: in reply_setatr() pass pathref fsp to smb_set_file_time() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3