From febb028b3b0d7b19b9c050668c8b5fe38dbb2e48 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 30 Jul 2009 16:15:08 -0700 Subject: [PATCH] Fix bug #6593 - trans2 call info level SMB_INFO_STANDARD must be removed. In the set case. Jeremy. --- source3/smbd/trans2.c | 49 ------------------------------------------------- 1 files changed, 0 insertions(+), 49 deletions(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index cae13df..8287224 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -5684,44 +5684,6 @@ static NTSTATUS smb_set_posix_lock(connection_struct *conn, } /**************************************************************************** - Deal with SMB_INFO_STANDARD. -****************************************************************************/ - -static NTSTATUS smb_set_info_standard(connection_struct *conn, - const char *pdata, - int total_data, - files_struct *fsp, - const char *fname, - const SMB_STRUCT_STAT *psbuf) -{ - struct smb_file_time ft; - ZERO_STRUCT(ft); - - if (total_data < 12) { - return NT_STATUS_INVALID_PARAMETER; - } - - /* create time */ - ft.create_time = interpret_long_date(pdata); - - /* access time */ - ft.atime = interpret_long_date(pdata + 8); - - /* write time */ - ft.mtime = interpret_long_date(pdata + 16); - - DEBUG(10,("smb_set_info_standard: file %s\n", - fname ? fname : fsp->fsp_name )); - - return smb_set_file_time(conn, - fsp, - fname, - psbuf, - &ft, - true); -} - -/**************************************************************************** Deal with SMB_SET_FILE_BASIC_INFO. ****************************************************************************/ @@ -6897,17 +6859,6 @@ static void call_trans2setfilepathinfo(connection_struct *conn, switch (info_level) { - case SMB_INFO_STANDARD: - { - status = smb_set_info_standard(conn, - pdata, - total_data, - fsp, - fname, - &sbuf); - break; - } - case SMB_INFO_SET_EA: { status = smb_info_set_ea(conn, -- 1.5.4.3