From c704e22806198a620d7e058c8d69c144ce096837 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 6 Aug 2009 13:11:20 -0700 Subject: [PATCH] Correctly implement SMB_INFO_STANDARD setfileinfo. Fixes bug #6593. Jeremy. --- source3/smbd/trans2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index cae13dfd94c..7173796e08d 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -5702,13 +5702,13 @@ static NTSTATUS smb_set_info_standard(connection_struct *conn, } /* create time */ - ft.create_time = interpret_long_date(pdata); + ft.create_time = convert_time_t_to_timespec(srv_make_unix_date2(pdata)); /* access time */ - ft.atime = interpret_long_date(pdata + 8); + ft.atime = convert_time_t_to_timespec(srv_make_unix_date2(pdata+4)); /* write time */ - ft.mtime = interpret_long_date(pdata + 16); + ft.mtime = convert_time_t_to_timespec(srv_make_unix_date2(pdata+8)); DEBUG(10,("smb_set_info_standard: file %s\n", fname ? fname : fsp->fsp_name )); -- 2.11.4.GIT