1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

SMB_INFO_STANDARD is not a valid info level on set,

and was being read incorrectly anyway. Remove.
Jeremy.
This commit is contained in:
Jeremy Allison 2009-07-30 13:13:23 -07:00
parent 36c0f0f99a
commit e411ec6a8a

View 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,