From: Volker Lendecke Date: Wed, 26 Jun 2024 06:57:26 +0000 (+0200) Subject: smbd: Remove some unused code X-Git-Tag: tdb-1.4.11~254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c3799dfb4a79ab0111148096ffa0d37f4a487a3a;p=thirdparty%2Fsamba.git smbd: Remove some unused code Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/smbd/smb2_trans2.c b/source3/smbd/smb2_trans2.c index 32d368cedaa..0e1abd095b5 100644 --- a/source3/smbd/smb2_trans2.c +++ b/source3/smbd/smb2_trans2.c @@ -5146,15 +5146,6 @@ NTSTATUS smbd_do_setfilepathinfo(connection_struct *conn, case SMB_FILE_DISPOSITION_INFORMATION: case SMB_SET_FILE_DISPOSITION_INFO: /* Set delete on close for open file. */ { -#if 0 - /* JRA - We used to just ignore this on a path ? - * Shouldn't this be invalid level on a pathname - * based call ? - */ - if (tran_call != TRANSACT2_SETFILEINFO) { - return ERROR_NT(NT_STATUS_INVALID_LEVEL); - } -#endif status = smb_set_file_disposition_info(conn, pdata, total_data,