summaryrefslogtreecommitdiff
path: root/source3/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
commit295b2d31a55c1450667519502fb94d852bf6cfd0 (patch)
tree06132b42eb81ad44c084add7f79ac894a3e468b0 /source3/smbd/trans2.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/trans2.c')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index f4cc9b218f..cc3261a479 100644
--- a/source3/smbd/trans2.c
+++ b/source3/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);