summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-03-11 23:20:26 +0000
committerJeremy Allison <jra@samba.org>1998-03-11 23:20:26 +0000
commit5299d1b49f2bfd6cf84a687548904206f4a18a41 (patch)
treeee3df33d00e305d54cf597ef81524fe9f2a6c1f4 /source/smbd/reply.c
parent118ba4d77a33248e762a2cf843fb7cbc906ee6e7 (diff)
downloadsamba-5299d1b49f2bfd6cf84a687548904206f4a18a41.tar.gz
samba-5299d1b49f2bfd6cf84a687548904206f4a18a41.tar.xz
samba-5299d1b49f2bfd6cf84a687548904206f4a18a41.zip
Missed fixes in NTDOM branch for doing readX via pipe IPC$.
Allows long share lists to be browsed. Browsing *into* a long share name still fails, though. (Luke - you may need to look into this). Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 74cfd797c3a..1415d95522f 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -1954,6 +1954,10 @@ int reply_read_and_X(char *inbuf,char *outbuf,int length,int bufsize)
cnum = SVAL(inbuf,smb_tid);
+ /* If it's an IPC, pass off the pipe handler. */
+ if (IS_IPC(cnum))
+ return reply_pipe_read_and_X(inbuf,outbuf,length,bufsize);
+
CHECK_FNUM(fnum,cnum);
CHECK_READ(fnum);
CHECK_ERROR(fnum);