diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-07 21:42:24 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-07 21:42:24 +0000 |
commit | 48b31ae44fb2a1961bd738b0b3e7a986259168a2 (patch) | |
tree | cb776f1cdce218ea1f904928eedab6c3b943e9d8 /source3/rpc_server/srv_pipe_hnd.c | |
parent | cf115a77d038dbd357cf476a6042f1bd5eb1e392 (diff) | |
download | samba-48b31ae44fb2a1961bd738b0b3e7a986259168a2.tar.gz samba-48b31ae44fb2a1961bd738b0b3e7a986259168a2.tar.bz2 samba-48b31ae44fb2a1961bd738b0b3e7a986259168a2.zip |
dce/rpc
(This used to be commit 6677b888bdb45df00646eb7cc13005b9465ff971)
Diffstat (limited to 'source3/rpc_server/srv_pipe_hnd.c')
-rw-r--r-- | source3/rpc_server/srv_pipe_hnd.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_pipe_hnd.c b/source3/rpc_server/srv_pipe_hnd.c index e898a8606f..31ca1a7c20 100644 --- a/source3/rpc_server/srv_pipe_hnd.c +++ b/source3/rpc_server/srv_pipe_hnd.c @@ -155,15 +155,33 @@ pipes_struct *open_rpc_pipe_p(char *pipe_name, /**************************************************************************** writes data to a pipe. + + SERIOUSLY ALPHA CODE! ****************************************************************************/ int write_pipe(pipes_struct *p, char *data, int n) { + prs_struct pd; + struct mem_buf data_buf; + DEBUG(6,("write_pipe: %x", p->pnum)); DEBUG(6,("name: %s open: %s len: %d", p->name, BOOLSTR(p->open), n)); - return -1; + dump_data(50, data, n); + + /* fake up a data buffer from the write_pipe data parameters */ + mem_create(&data_buf, data, n, 0, False); + data_buf.offset.start = 0; + data_buf.offset.end = n; + + /* fake up a parsing structure */ + pd.data = &data_buf; + pd.align = 4; + pd.io = True; + pd.offset = 0; + + return rpc_command(p, &pd) ? n : -1; } |