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/trans2.c | |
parent | 420d6bc4809cef9d74354175d0fa956ab4e8ac3c (diff) | |
download | samba-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.c | 4 |
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); |