summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index ee646aa7c3..ddc5dd06a5 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -2030,7 +2030,7 @@ void reply_mknew(struct smb_request *req)
}
ts[0] = get_atimespec(&sbuf); /* atime. */
- status = smb_set_file_time(conn, fsp, fname, &sbuf, ts, true);
+ status = smb_set_file_time(conn, fsp, fsp->fsp_name, &sbuf, ts, true);
if (!NT_STATUS_IS_OK(status)) {
END_PROFILE(SMBcreate);
reply_openerror(req, status);