summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-05-23 17:57:51 +0000
committerJeremy Allison <jra@samba.org>2000-05-23 17:57:51 +0000
commit295b2d31a55c1450667519502fb94d852bf6cfd0 (patch)
tree06132b42eb81ad44c084add7f79ac894a3e468b0 /source3/smbd/reply.c
parent3cbaf59726fc9fb7fc5a3124b3e1b8c5480a568e (diff)
downloadsamba-295b2d31a55c1450667519502fb94d852bf6cfd0.tar.gz
samba-295b2d31a55c1450667519502fb94d852bf6cfd0.tar.bz2
samba-295b2d31a55c1450667519502fb94d852bf6cfd0.zip
Did a proper fix for the file access on IPC$. Denied all pipe opens on
trans2 open calls as we don't have the pipe open response coded up yet. Jeremy. (This used to be commit 8142e27c9c32aba5a7dabc48a676b93cf680151b)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index c2db6dd082..9845853349 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1571,8 +1571,12 @@ 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) && lp_nt_pipe_support())
- return reply_open_pipe_and_X(conn, inbuf,outbuf,length,bufsize);
+ if (IS_IPC(conn)) {
+ if (lp_nt_pipe_support())
+ return reply_open_pipe_and_X(conn, inbuf,outbuf,length,bufsize);
+ else
+ return (ERROR(ERRSRV,ERRaccess));
+ }
/* XXXX we need to handle passed times, sattr and flags */