summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-07-30 13:13:23 -0700
committerJeremy Allison <jra@samba.org>2009-07-30 13:13:23 -0700
commite411ec6a8af13ff9213b27212a4bed2db651585d (patch)
tree6a2a89c5999e7f22889a4e8b6248921c19819ce1 /source3
parent36c0f0f99aee940668b84c2c70b27f4993d9e6ee (diff)
downloadsamba-e411ec6a8af13ff9213b27212a4bed2db651585d.tar.gz
samba-e411ec6a8af13ff9213b27212a4bed2db651585d.tar.bz2
samba-e411ec6a8af13ff9213b27212a4bed2db651585d.zip
SMB_INFO_STANDARD is not a valid info level on set,
and was being read incorrectly anyway. Remove. Jeremy.
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/trans2.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index f34e15b1df..76b6b3bbe1 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -6045,38 +6045,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 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,