converted smbd to use NTSTATUS by default
[ira/wip.git] / source3 / smbd / pipes.c
index c7e0c3a5e571d762f9fc34f42e82f6f00ba094c2..162ad1603d84595add759e9c3332af5d9cd3a18c 100644 (file)
@@ -59,7 +59,7 @@ int reply_open_pipe_and_X(connection_struct *conn,
        /* at a mailslot or something we really, really don't understand, */
        /* not just something we really don't understand. */
        if ( strncmp(pipe_name,PIPE,PIPELEN) != 0 )
-               return(ERROR(ERRSRV,ERRaccess));
+               return(ERROR_DOS(ERRSRV,ERRaccess));
 
        DEBUG(4,("Opening pipe %s.\n", pipe_name));
 
@@ -69,7 +69,7 @@ int reply_open_pipe_and_X(connection_struct *conn,
                        break;
 
        if (pipe_names[i].client_pipe == NULL)
-               return(ERROR(ERRSRV,ERRaccess));
+               return(ERROR_DOS(ERRSRV,ERRaccess));
 
        /* Strip \PIPE\ off the name. */
        pstrcpy(fname, pipe_name + PIPELEN);
@@ -89,7 +89,7 @@ int reply_open_pipe_and_X(connection_struct *conn,
        smb_ofun |= FILE_CREATE_IF_NOT_EXIST;
 
        p = open_rpc_pipe_p(fname, conn, vuid);
-       if (!p) return(ERROR(ERRSRV,ERRnofids));
+       if (!p) return(ERROR_DOS(ERRSRV,ERRnofids));
 
        /* Prepare the reply */
        set_message(outbuf,15,0,True);
@@ -125,7 +125,7 @@ int reply_pipe_write(char *inbuf,char *outbuf,int length,int dum_bufsize)
        char *data;
 
        if (!p)
-               return(ERROR(ERRDOS,ERRbadfid));
+               return(ERROR_DOS(ERRDOS,ERRbadfid));
 
        data = smb_buf(inbuf) + 3;
 
@@ -165,7 +165,7 @@ int reply_pipe_write_and_X(char *inbuf,char *outbuf,int length,int bufsize)
        char *data;
 
        if (!p)
-               return(ERROR(ERRDOS,ERRbadfid));
+               return(ERROR_DOS(ERRDOS,ERRbadfid));
 
        data = smb_base(inbuf) + smb_doff;
 
@@ -225,7 +225,7 @@ int reply_pipe_read_and_X(char *inbuf,char *outbuf,int length,int bufsize)
 #endif
 
        if (!p)
-               return(ERROR(ERRDOS,ERRbadfid));
+               return(ERROR_DOS(ERRDOS,ERRbadfid));
 
        set_message(outbuf,12,0,True);
        data = smb_buf(outbuf);
@@ -254,12 +254,12 @@ int reply_pipe_close(connection_struct *conn, char *inbuf,char *outbuf)
        int outsize = set_message(outbuf,0,0,True);
 
        if (!p)
-               return(ERROR(ERRDOS,ERRbadfid));
+               return(ERROR_DOS(ERRDOS,ERRbadfid));
 
        DEBUG(5,("reply_pipe_close: pnum:%x\n", p->pnum));
 
        if (!close_rpc_pipe_hnd(p, conn))
-               return(ERROR(ERRDOS,ERRbadfid));
+               return ERROR_DOS(ERRDOS,ERRbadfid);
 
        return(outsize);
 }