summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
committerAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
commitefb8113d00a4513c1115640004c0905465d3b673 (patch)
tree13823188f1f1b05a4861611a806109d2281e6479 /source3/client
parente351461e094a14caed31b7eae37e39d935d30561 (diff)
downloadsamba-efb8113d00a4513c1115640004c0905465d3b673.tar.gz
samba-efb8113d00a4513c1115640004c0905465d3b673.tar.bz2
samba-efb8113d00a4513c1115640004c0905465d3b673.zip
- made FAST_SHARE_MODES standard for Linux
- you can now press enter after a password prompt with "smbclient -L hostname" and it will use a blank username and password, the same as if you used -U% - changed the wins.dat store code to not go via a string variable (just use fprintf instead) - removed a "unsigned long" that luke put back in, changing it to uint32 to keep 64 bit machines happy. Naughtly luke! - allow guest non-connnected print queue listings so ms client 3 can work (This used to be commit 917160dee69bbc198985b6f3232ca2dcda809d8a)
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index a6bb50cb3d..b0e4f4a004 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -2523,7 +2523,7 @@ static void cmd_qinfo(char *inbuf,char *outbuf )
char *p;
int rdrcnt, rprcnt;
pstring param;
- int result_code;
+ int result_code=0;
bzero(param,sizeof(param));
@@ -3037,6 +3037,7 @@ static BOOL send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setu
pstring dev;
char *p;
int numprots;
+ int tries=0;
if (was_null)
{
@@ -3174,6 +3175,10 @@ static BOOL send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setu
else
pass = (char *)getpass("Password: ");
+ /* use a blank username for the 2nd try with a blank password */
+ if (tries++ && !*pass)
+ *username = 0;
+
if (Protocol >= PROTOCOL_LANMAN1 && use_setup)
{
fstring pword;