From ee49e0391fda564f165f582a3119b832555e4952 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 25 Jul 2008 13:16:18 -0700 Subject: Fix bug creating files using DOS clients with mixed case files. Reported by Daniel Johnson . The smb_set_file_time() call to set the filetimes is failing because it's using the unmodified name passed in by the client, not the modified name (matching case on the disk) that comes out from create_file(). Jeremy. (This used to be commit 1706a33e78347d14a8b09fd21b87d57bad543bcd) --- source3/smbd/reply.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/reply.c') 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); -- cgit