mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +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:
parent
36c0f0f99a
commit
e411ec6a8a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user