]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Remove some unused code
authorVolker Lendecke <vl@samba.org>
Wed, 26 Jun 2024 06:57:26 +0000 (08:57 +0200)
committerRalph Boehme <slow@samba.org>
Fri, 28 Jun 2024 13:26:24 +0000 (13:26 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/smb2_trans2.c

index 32d368cedaab4f243bfbfdea1417f1973a46ddcf..0e1abd095b56d15c2779645a1f717d3674e009ec 100644 (file)
@@ -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,