diff options
author | Herb Lewis <herb@samba.org> | 1998-02-26 20:41:05 +0000 |
---|---|---|
committer | Herb Lewis <herb@samba.org> | 1998-02-26 20:41:05 +0000 |
commit | 140fba461bc22f26055c13b04a084d2df16ac604 (patch) | |
tree | f69096f8287bf49a31507c5877fd13affc21f43b /source/client/clientutil.c | |
parent | b813fb22c4c1b0ee48667e99e82434d20266bbf2 (diff) | |
download | samba-140fba461bc22f26055c13b04a084d2df16ac604.tar.gz samba-140fba461bc22f26055c13b04a084d2df16ac604.tar.xz samba-140fba461bc22f26055c13b04a084d2df16ac604.zip |
-N option still prompted for password in smbclient -L usage
Diffstat (limited to 'source/client/clientutil.c')
-rw-r--r-- | source/client/clientutil.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/client/clientutil.c b/source/client/clientutil.c index e2241be2371..8d5e11e4d8c 100644 --- a/source/client/clientutil.c +++ b/source/client/clientutil.c @@ -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", |