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 | 59018c58e4158e9ccb51c42ca32e490f32ee0def (patch) | |
tree | 7f2b22a2d0d6136e6e30a107adcb153d5336b049 /source/smbd/reply.c | |
parent | 2501fe7c0436fc00f35271e2dce17fe541e97424 (diff) | |
download | samba-59018c58e4158e9ccb51c42ca32e490f32ee0def.tar.gz samba-59018c58e4158e9ccb51c42ca32e490f32ee0def.tar.xz samba-59018c58e4158e9ccb51c42ca32e490f32ee0def.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.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r-- | source/smbd/reply.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c index eb97382750b..bef1b150847 100644 --- a/source/smbd/reply.c +++ b/source/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; |