summaryrefslogtreecommitdiff
path: root/source/smbd/trans2.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
commit8142e27c9c32aba5a7dabc48a676b93cf680151b (patch)
treea7b0e50337f2c68609f5954326360c9ecf57ce27 /source/smbd/trans2.c
parent420d6bc4809cef9d74354175d0fa956ab4e8ac3c (diff)
downloadsamba-8142e27c9c32aba5a7dabc48a676b93cf680151b.tar.gz
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/trans2.c')
-rw-r--r--source/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/trans2.c b/source/smbd/trans2.c
index f4cc9b218f3..cc3261a479d 100644
--- a/source/smbd/trans2.c
+++ b/source/smbd/trans2.c
@@ -218,6 +218,10 @@ static int call_trans2open(connection_struct *conn, char *inbuf, char *outbuf,
DEBUG(3,("trans2open %s mode=%d attr=%d ofun=%d size=%d\n",
fname,open_mode, open_attr, open_ofun, open_size));
+ if (IS_IPC(conn)) {
+ return(ERROR(ERRSRV,ERRaccess));
+ }
+
/* XXXX we need to handle passed times, sattr and flags */
unix_convert(fname,conn,0,&bad_path,NULL);