s3-util: Fix asking for username and password in smbget.
commitf5401ff3146aabc5fb2dac25e4856c6c3756c8f7
authorAndreas Schneider <asn@samba.org>
Thu, 25 Aug 2016 12:24:08 +0000 (25 14:24 +0200)
committerJeremy Allison <jra@samba.org>
Fri, 26 Aug 2016 02:22:27 +0000 (26 04:22 +0200)
tree50bd911886c9f8ca41f67e8b1ffc35ed2929732c
parentcb243d86d892cb148d01dd87f29f86f3e2c1ebd0
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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Aug 26 04:22:27 CEST 2016 on sn-devel-144
source3/utils/smbget.c