summaryrefslogtreecommitdiffstats
path: root/source/smbd/pipes.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-05 16:33:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:49 -0500
commit836782b07bf133e9b2598c4a089f1c810e4c7754 (patch)
tree409156436e3ecf8c3009af498551ce7e45b2bfa3 /source/smbd/pipes.c
parenta50555dda7db5e848e337185ed91c41c2557f7be (diff)
downloadsamba-836782b07bf133e9b2598c4a089f1c810e4c7754.tar.gz
samba-836782b07bf133e9b2598c4a089f1c810e4c7754.tar.xz
samba-836782b07bf133e9b2598c4a089f1c810e4c7754.zip
r23726: Explicitly pass down the FLAGS2 field to srvstr_pull_buf. The next
checkin will pull this up to srvstr_get_path. At that point we can get more independent of the inbuf, the base_ptr in pull_string will only be used to satisfy UCS2 alignment constraints.
Diffstat (limited to 'source/smbd/pipes.c')
-rw-r--r--source/smbd/pipes.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/smbd/pipes.c b/source/smbd/pipes.c
index aba2fe69c59..1da2f0c22f4 100644
--- a/source/smbd/pipes.c
+++ b/source/smbd/pipes.c
@@ -65,7 +65,8 @@ int reply_open_pipe_and_X(connection_struct *conn,
int i;
/* XXXX we need to handle passed times, sattr and flags */
- srvstr_pull_buf(inbuf, pipe_name, smb_buf(inbuf), sizeof(pipe_name), STR_TERMINATE);
+ srvstr_pull_buf(inbuf, SVAL(inbuf, smb_flg2), pipe_name,
+ smb_buf(inbuf), sizeof(pipe_name), STR_TERMINATE);
/* If the name doesn't start \PIPE\ then this is directed */
/* at a mailslot or something we really, really don't understand, */