check for lp_nt_pipe_support() in open calls
authorAndrew Tridgell <tridge@samba.org>
Sun, 18 Oct 1998 19:30:26 +0000 (19:30 +0000)
committerAndrew Tridgell <tridge@samba.org>
Sun, 18 Oct 1998 19:30:26 +0000 (19:30 +0000)
(This used to be commit 44d901b3e040a520c4ad9089e68c566c78acacca)

source3/smbd/nttrans.c
source3/smbd/reply.c

index 758c46a6cd0234dd1027562f6c51166df25284cb..128a234304ef8509e54ca462b35dd368d7eca2bb 100644 (file)
@@ -491,7 +491,7 @@ int reply_ntcreate_and_X(connection_struct *conn,
        
        /* If it's an IPC, use the pipe handler. */
 
-       if (IS_IPC(conn)) {
+       if (IS_IPC(conn) && lp_nt_pipe_support()) {
 
                int ret = nt_open_pipe(fname, conn, inbuf, outbuf, &pnum);
                if(ret != 0)
index 5afc4593e6ac2f4e5cc2d01ee5a7a34de163aec8..d801ce4a630488a1ac52c23c348aeaf91a2a53a7 100644 (file)
@@ -1353,7 +1353,7 @@ int reply_open_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
   files_struct *fsp;
 
   /* If it's an IPC, pass off the pipe handler. */
-  if (IS_IPC(conn))
+  if (IS_IPC(conn) && lp_nt_pipe_support())
     return reply_open_pipe_and_X(conn, inbuf,outbuf,length,bufsize);
 
   /* XXXX we need to handle passed times, sattr and flags */