From: Jeremy Allison Date: Fri, 25 Jul 2008 20:16:18 +0000 (-0700) Subject: Fix bug creating files using DOS clients with mixed X-Git-Tag: samba-3.3.0pre1~402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1706a33e78347d14a8b09fd21b87d57bad543bcd;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/smbd/reply.c b/source/smbd/reply.c index ee646aa7c3a..ddc5dd06a54 100644 --- a/source/smbd/reply.c +++ b/source/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);