SMB_INFO_STANDARD is not a valid info level on set,
authorJeremy Allison <jra@samba.org>
Thu, 30 Jul 2009 20:13:23 +0000 (13:13 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2009 20:13:23 +0000 (13:13 -0700)
and was being read incorrectly anyway. Remove.
Jeremy.

source3/smbd/trans2.c

index f34e15b1df21e88ba231f2cfe8f7ddaba1c231ca..76b6b3bbe1b174918ca5b24758207963ddd87c26 100644 (file)
@@ -6044,38 +6044,6 @@ static NTSTATUS smb_set_posix_lock(connection_struct *conn,
        return status;
 }
 
-/****************************************************************************
- Deal with SMB_INFO_STANDARD.
-****************************************************************************/
-
-static NTSTATUS smb_set_info_standard(connection_struct *conn,
-                                       const char *pdata,
-                                       int total_data,
-                                       files_struct *fsp,
-                                       const struct smb_filename *smb_fname)
-{
-       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",
-                 smb_fname_str_dbg(smb_fname)));
-
-       return smb_set_file_time(conn, fsp, smb_fname, &ft, true);
-}
-
 /****************************************************************************
  Deal with SMB_SET_FILE_BASIC_INFO.
 ****************************************************************************/
@@ -7118,16 +7086,6 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn,
 
        switch (info_level) {
 
-               case SMB_INFO_STANDARD:
-               {
-                       status = smb_set_info_standard(conn,
-                                       pdata,
-                                       total_data,
-                                       fsp,
-                                       smb_fname);
-                       break;
-               }
-
                case SMB_INFO_SET_EA:
                {
                        status = smb_info_set_ea(conn,