s3:utils/smbget fix recursive download
authorChristian Ambach <ambi@samba.org>
Wed, 30 Dec 2015 20:25:13 +0000 (21:25 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 25 Jan 2016 09:24:23 +0000 (10:24 +0100)
commitec802d27ce4dc6dd9b5e5ebd6992f90364d855a2
tree3a69eedef46b9422d01b9e955918df8a3e73e27a
parentc8a5ab9ed2cdde3958000d00e634955e437afa05
s3:utils/smbget fix recursive download

get_auth_data is called multiple times (once for the directory listing and then
for every file to be downloaded). Save the obtained values across multiple calls
to make smbclient use the correct username for each download.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=6482
Signed-off-by: Christian Ambach <ambi@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/utils/smbget.c