mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
Fix bug creating files using DOS clients with mixed
case files. Reported by Daniel Johnson <Progman2000@usa.net>. 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 commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user