]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
The DELL powervault 705 is sending a tcon&x with the service name being
authorJean-François Micouleau <jfm@samba.org>
Wed, 22 Aug 2001 13:08:01 +0000 (13:08 +0000)
committerJean-François Micouleau <jfm@samba.org>
Wed, 22 Aug 2001 13:08:01 +0000 (13:08 +0000)
"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)

source3/smbd/reply.c

index eb97382750b75bb9eecb88e7200d274e2817e95f..bef1b1508474cdea7bad90e57cd3a6d54720afe6 100644 (file)
@@ -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;