]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix bug 6829 - smbclient does not show special characters properly. All successful...
authorJeremy Allison <jra@samba.org>
Thu, 22 Oct 2009 22:35:59 +0000 (15:35 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 23 Oct 2009 07:19:05 +0000 (09:19 +0200)
source/libsmb/clidfs.c
source/libsmb/libsmb_server.c

index 5379ff9893a65b0dbe8fd6fc23f0ec847db55aaa..1b17679c80bd5c7a86eea00c53f76c42b74c0bd3 100644 (file)
@@ -235,6 +235,9 @@ static struct cli_state *do_connect(TALLOC_CTX *ctx,
                        return NULL;
                }
                d_printf("Anonymous login successful\n");
+               cli_init_creds(c, "", lp_workgroup(), "");
+       } else {
+               cli_init_creds(c, username, lp_workgroup(), password);
        }
 
        if ( show_sessetup ) {
index 6880f5c3426eed4156c9f10e67ebd3b180b2cd3f..dfb56b0a3ba3c6298da362fea9dfb3b0f53a8f9c 100644 (file)
@@ -497,6 +497,8 @@ again:
                         return NULL;
                 }
        }
+
+       cli_init_creds(c, username_used, *pp_workgroup, *pp_password);
         
        DEBUG(4,(" session setup ok\n"));