The Samba-Bugzilla – Attachment 11801 Details for
Bug 11703
dos filetime resolution ignored by SMB2 create calls.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix cherry-picked from master
0001-s3-smbd-Fix-timestamp-rounding-inside-SMB2-create.patch (text/plain), 1.58 KB, created by
Jeremy Allison
on 2016-01-29 16:14:01 UTC
(
hide
)
Description:
git-am fix cherry-picked from master
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2016-01-29 16:14:01 UTC
Size:
1.58 KB
patch
obsolete
>From 5040e1b7ef68fcc03e690d87ed5aaefbee3c459b Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Thu, 28 Jan 2016 16:35:13 -0800 >Subject: [PATCH] s3: smbd: Fix timestamp rounding inside SMB2 create. > >Setting "dos filetime resolution = yes" should round >to 2 second increments. Fix missing path inside smbd. > >Fix confirmed by reporter Hubert Gilch <hg@sepag.de>. > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11703 > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Volker Lendecke <vl@samba.org> > >Autobuild-User(master): Volker Lendecke <vl@samba.org> >Autobuild-Date(master): Fri Jan 29 10:41:01 CET 2016 on sn-devel-144 > >(cherry picked from commit 8024f532e6bcb6cbd8179817fafdd0f12929d629) >--- > source3/smbd/smb2_create.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c >index ecedd08..2112395 100644 >--- a/source3/smbd/smb2_create.c >+++ b/source3/smbd/smb2_create.c >@@ -1265,6 +1265,14 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, > state->out_last_write_ts = result->fsp_name->st.st_ex_mtime; > state->out_change_ts = get_change_timespec(smb1req->conn, > result, result->fsp_name); >+ >+ if (lp_dos_filetime_resolution(SNUM(smb2req->tcon->compat))) { >+ dos_filetime_timespec(&state->out_creation_ts); >+ dos_filetime_timespec(&state->out_last_access_ts); >+ dos_filetime_timespec(&state->out_last_write_ts); >+ dos_filetime_timespec(&state->out_change_ts); >+ } >+ > state->out_allocation_size = > SMB_VFS_GET_ALLOC_SIZE(smb1req->conn, result, > &(result->fsp_name->st)); >-- >2.5.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
vl
:
review+
Actions:
View
Attachments on
bug 11703
: 11801