]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: in reply_setatr() pass pathref fsp to smb_set_file_time()
authorRalph Boehme <slow@samba.org>
Wed, 4 Nov 2020 09:09:34 +0000 (10:09 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/reply.c

index 43e23635ba963060a79a12b3410021b11e927e32..5f7be3727acfb93ae69f6af95724feb1b695243c 100644 (file)
@@ -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;