smbget: fix recursive download master
authorChristian Ambach <ambi@samba.org>
Wed, 30 Dec 2015 20:25:13 +0000 (21:25 +0100)
committerChristian Ambach <ambi@samba.org>
Wed, 30 Dec 2015 20:33:51 +0000 (21:33 +0100)
commitff5b90e252bcffeef677e8a598e256f877957ed3
tree84eb1021cfb0ba8fcf9d1441c730ed3cf0286127
parentaea8c6915bc7a9d3867c6215db0e9adc92232778
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>
source3/utils/smbget.c