diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-23 17:57:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-23 17:57:51 +0000 |
commit | 8142e27c9c32aba5a7dabc48a676b93cf680151b (patch) | |
tree | a7b0e50337f2c68609f5954326360c9ecf57ce27 /source/smbd/reply.c | |
parent | 420d6bc4809cef9d74354175d0fa956ab4e8ac3c (diff) | |
download | samba-8142e27c9c32aba5a7dabc48a676b93cf680151b.tar.gz samba-8142e27c9c32aba5a7dabc48a676b93cf680151b.tar.xz samba-8142e27c9c32aba5a7dabc48a676b93cf680151b.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.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index c2db6dd0827..98458533491 100644 --- a/source/smbd/reply.c +++ b/source/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 */ |