mirror of
https://github.com/samba-team/samba.git
synced 2025-06-29 04:49:44 +03:00
check for lp_nt_pipe_support() in open calls
This commit is contained in:
parent
c161b2f850
commit
44d901b3e0
@ -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)
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user