Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.
authorJeremy Allison <jra@samba.org>
Tue, 18 Dec 2001 02:09:57 +0000 (02:09 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 18 Dec 2001 02:09:57 +0000 (02:09 +0000)
Jeremy.

source/smbd/nttrans.c
source/smbd/pipes.c

index 2c3ac06f3c8241c7eefe99e3912f27813ec82b4a..457b0451935089dbb31814e1de70ec1c2d66d90e 100644 (file)
@@ -483,7 +483,7 @@ static int nt_open_pipe(char *fname, connection_struct *conn,
                        break;
     
        if ( known_nt_pipes[i] == NULL )
-               return(ERROR_DOS(ERRSRV,ERRaccess));
+               return(ERROR_BOTH(NT_STATUS_OBJECT_NAME_NOT_FOUND,ERRDOS,ERRbadpipe));
     
        /* Strip \\ off the name. */
        fname++;
index 9a911ed01457a242cff13466d7986c12e6ac6a84..cd8a56a5d2ae812693cafaf38e8919fa1b15de7a 100644 (file)
@@ -67,7 +67,7 @@ int reply_open_pipe_and_X(connection_struct *conn,
                        break;
 
        if (pipe_names[i].client_pipe == NULL)
-               return(ERROR_DOS(ERRSRV,ERRaccess));
+               return(ERROR_BOTH(NT_STATUS_OBJECT_NAME_NOT_FOUND,ERRDOS,ERRbadpipe));
 
        /* Strip \PIPE\ off the name. */
        pstrcpy(fname, pipe_name + PIPELEN);