mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
smbd: Simplify smb_set_info_standard()
We've asserted fsp!=NULL in the caller Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
ae97ebd9bc
commit
38c59f7840
@ -4913,10 +4913,6 @@ static NTSTATUS smb_set_info_standard(connection_struct *conn,
|
|||||||
return NT_STATUS_INVALID_PARAMETER;
|
return NT_STATUS_INVALID_PARAMETER;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fsp == NULL) {
|
|
||||||
return NT_STATUS_INVALID_HANDLE;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* create time */
|
/* create time */
|
||||||
ft.create_time = time_t_to_full_timespec(srv_make_unix_date2(pdata));
|
ft.create_time = time_t_to_full_timespec(srv_make_unix_date2(pdata));
|
||||||
/* access time */
|
/* access time */
|
||||||
|
Loading…
Reference in New Issue
Block a user