s3-util: Fix asking for username and password in smbget.
commit438a79ede0f658313a51bee5df507d996c079636
authorAndreas Schneider <asn@samba.org>
Thu, 25 Aug 2016 12:24:08 +0000 (25 14:24 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 13 Sep 2016 10:27:29 +0000 (13 12:27 +0200)
treef92545998912b5e0dfa4c83becdebd82c62927c5
parent88c1b5caeb547a1a3ebe94614fa827dc473cb64c
s3-util: Fix asking for username and password in smbget.

If the user specified the username in the URI with with:

  smb://DOMAIN;user:secret@server/share

the tool should not prompt for the username nor the password.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12175

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f5401ff3146aabc5fb2dac25e4856c6c3756c8f7)
source3/utils/smbget.c