diff options
author | Jeremy Allison <jra@samba.org> | 2008-07-25 13:16:18 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2008-07-25 13:16:18 -0700 |
commit | ee49e0391fda564f165f582a3119b832555e4952 (patch) | |
tree | 7c7b624e93ec9a85027d680a756174b7f8ce3097 /source3/smbd | |
parent | 0f9c30c11421d045cace1f2c909fdb583ea830ba (diff) | |
download | samba-ee49e0391fda564f165f582a3119b832555e4952.tar.gz samba-ee49e0391fda564f165f582a3119b832555e4952.tar.bz2 samba-ee49e0391fda564f165f582a3119b832555e4952.zip |
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 used to be commit 1706a33e78347d14a8b09fd21b87d57bad543bcd)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 2 |
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); |