s3-util: Fix asking for username and password in smbget.
commit6c6fb451e35f9bdd928fd6c605d84bc9ccaab679
authorAndreas Schneider <asn@samba.org>
Thu, 25 Aug 2016 12:24:08 +0000 (25 14:24 +0200)
committerStefan Metzmacher <metze@samba.org>
Sun, 28 Aug 2016 20:02:12 +0000 (28 22:02 +0200)
tree4bae32c3ae27d698d9bb6dc181a7d9e61b757874
parent372fb30da71fd80a3f7bfb0f3fe3a4f151ceb30d
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)

Autobuild-User(v4-5-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-5-test): Sun Aug 28 22:02:12 CEST 2016 on sn-devel-144
source3/utils/smbget.c