1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

-N option still prompted for password in smbclient -L usage

(This used to be commit 140fba461b)
This commit is contained in:
Herb Lewis 1998-02-26 20:41:05 +00:00
parent de3badf479
commit b3d9fe61f3
2 changed files with 5 additions and 1 deletions

View File

@ -40,6 +40,7 @@ extern pstring username;
extern pstring workgroup;
char *cmdstr="";
extern BOOL got_pass;
extern BOOL no_pass;
extern BOOL connect_as_printer;
extern BOOL connect_as_ipc;
extern struct in_addr ipzero;
@ -3699,6 +3700,7 @@ static void usage(char *pname)
break;
case 'N':
got_pass = True;
no_pass = True;
break;
case 'P':
connect_as_printer = True;

View File

@ -39,6 +39,7 @@ pstring smb_login_passwd = "";
pstring username="";
pstring workgroup=WORKGROUP;
BOOL got_pass = False;
BOOL no_pass = False;
BOOL connect_as_printer = False;
BOOL connect_as_ipc = False;
@ -661,7 +662,8 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup,
{
got_pass = False;
DEBUG(3,("resending login\n"));
goto get_pass;
if (! no_pass)
goto get_pass;
}
DEBUG(0,("Session setup failed for username=%s myname=%s destname=%s %s\n",