summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJean-François Micouleau <jfm@samba.org>2001-07-04 21:57:03 +0000
committerJean-François Micouleau <jfm@samba.org>2001-07-04 21:57:03 +0000
commit6b97f76be844a333502c1f17c65fb9e909599915 (patch)
tree096b08bc7a00a2094bfd16e5daf60f12216f518f /source3/smbd
parent0a33bdc7bd9aa4ecd65f8066d2c5ec82a042371a (diff)
downloadsamba-6b97f76be844a333502c1f17c65fb9e909599915.tar.gz
samba-6b97f76be844a333502c1f17c65fb9e909599915.tar.bz2
samba-6b97f76be844a333502c1f17c65fb9e909599915.zip
allow to use usrmgr/svrmgr tools in win95
pretty cool (This used to be commit 04575ff17b9b5fe802e66bb8dd1948317ab35485)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/pipes.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c
index 7a3c1fe20e..c7e0c3a5e5 100644
--- a/source3/smbd/pipes.c
+++ b/source3/smbd/pipes.c
@@ -45,6 +45,7 @@ int reply_open_pipe_and_X(connection_struct *conn,
char *inbuf,char *outbuf,int length,int bufsize)
{
pstring fname;
+ pstring pipe_name;
uint16 vuid = SVAL(inbuf, smb_uid);
pipes_struct *p;
int smb_ofun = SVAL(inbuf,smb_vwv8);
@@ -52,26 +53,27 @@ int reply_open_pipe_and_X(connection_struct *conn,
int i;
/* XXXX we need to handle passed times, sattr and flags */
- srvstr_pull(inbuf, fname, smb_buf(inbuf), sizeof(fname), -1, STR_TERMINATE);
+ srvstr_pull(inbuf, pipe_name, smb_buf(inbuf), sizeof(pipe_name), -1, STR_TERMINATE);
/* If the name doesn't start \PIPE\ then this is directed */
/* at a mailslot or something we really, really don't understand, */
/* not just something we really don't understand. */
- if ( strncmp(fname,PIPE,PIPELEN) != 0 )
+ if ( strncmp(pipe_name,PIPE,PIPELEN) != 0 )
return(ERROR(ERRSRV,ERRaccess));
- DEBUG(4,("Opening pipe %s.\n", fname));
+ DEBUG(4,("Opening pipe %s.\n", pipe_name));
/* See if it is one we want to handle. */
for( i = 0; pipe_names[i].client_pipe ; i++ )
- if( strequal(fname,pipe_names[i].client_pipe) )
+ if( strequal(pipe_name,pipe_names[i].client_pipe) )
break;
if (pipe_names[i].client_pipe == NULL)
return(ERROR(ERRSRV,ERRaccess));
/* Strip \PIPE\ off the name. */
- pstrcpy(fname,smb_buf(inbuf) + PIPELEN);
+ pstrcpy(fname, pipe_name + PIPELEN);
+
#if 0
/*