smbd: Remove code #ifdef'ed out >23years ago
authorVolker Lendecke <vl@samba.org>
Mon, 16 Oct 2023 15:42:37 +0000 (17:42 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 1 Nov 2023 18:55:32 +0000 (18:55 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb1_pipes.c

index 6daafccdd068c7e9c45edefa06d070c18b5cf910..ea2fae5ebc094c27e9dfd35250272bc515777dd1 100644 (file)
@@ -77,16 +77,6 @@ void reply_open_pipe_and_X(connection_struct *conn, struct smb_request *req)
 
        DEBUG(4,("Opening pipe %s => %s.\n", pipe_name, fname));
 
-#if 0
-       /*
-        * Hack for NT printers... JRA.
-        */
-       if(should_fail_next_srvsvc_open(fname)) {
-               reply_nterror(req, NT_STATUS_ACCESS_DENIED);
-               return;
-       }
-#endif
-
        status = open_np_file(req, fname, &fsp);
        if (!NT_STATUS_IS_OK(status)) {
                if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_NOT_FOUND)) {