diff options
author | Jean-François Micouleau <jfm@samba.org> | 2001-08-22 13:08:01 +0000 |
---|---|---|
committer | Jean-François Micouleau <jfm@samba.org> | 2001-08-22 13:08:01 +0000 |
commit | fe626d22bfd25231db487180dd7e517db93b573e (patch) | |
tree | 6b9eb5a76294cde2b7d78cffb0ce9ff6698338c1 /source3/smbd | |
parent | c50ef232152551ac79502caaf259cdfc3a32ca96 (diff) | |
download | samba-fe626d22bfd25231db487180dd7e517db93b573e.tar.gz samba-fe626d22bfd25231db487180dd7e517db93b573e.tar.bz2 samba-fe626d22bfd25231db487180dd7e517db93b573e.zip |
The DELL powervault 705 is sending a tcon&x with the service name being
"share" instead of "\\server\share".
Fix that. Still not able to get the user list but that's something else.
Jeremy I don't think I broke anything ;-)
J.F.
(This used to be commit 59018c58e4158e9ccb51c42ca32e490f32ee0def)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index eb97382750..bef1b15084 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -288,12 +288,22 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt passlen = strlen(password); } - q = strchr_m(path+2,'\\'); - if (!q) { - END_PROFILE(SMBtconX); - return(ERROR(ERRDOS,ERRnosuchshare)); + + /* + * the service name can be either: \\server\share + * or share directly like on the DELL PowerVault 705 + */ + if (*path=='\\') { + q = strchr_m(path+2,'\\'); + if (!q) { + END_PROFILE(SMBtconX); + return(ERROR(ERRDOS,ERRnosuchshare)); + } + fstrcpy(service,q+1); } - fstrcpy(service,q+1); + else + fstrcpy(service,path); + q = strchr_m(service,'%'); if (q) { *q++ = 0; |