[SCM] Samba Shared Repository - branch master updated

Volker Lendecke vlendec at samba.org
Fri Jan 29 09:42:03 UTC 2016


The branch, master has been updated
       via  8024f53 s3: smbd: Fix timestamp rounding inside SMB2 create.
      from  6825a22 ctdb: do not provide a useless pkgconfig file for ctdb.

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 8024f532e6bcb6cbd8179817fafdd0f12929d629
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Jan 28 16:35:13 2016 -0800

    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 at sepag.de>.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=11703
    
    Signed-off-by: Jeremy Allison <jra at samba.org>
    Reviewed-by: Volker Lendecke <vl at samba.org>
    
    Autobuild-User(master): Volker Lendecke <vl at samba.org>
    Autobuild-Date(master): Fri Jan 29 10:41:01 CET 2016 on sn-devel-144

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/smb2_create.c | 8 ++++++++
 1 file changed, 8 insertions(+)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index 54a598d..62948a0 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -1280,6 +1280,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));


-- 
Samba Shared Repository



More information about the samba-cvs mailing list