I have been using smbclient under Amanda as a backup solution for some time. It has worked fine until an upgrade somewhere in the 3.2.x series probably 3.2.5 but it could have been earlier.
After some investigation I have found a problem in the client.c code. If do_list_helper is called with a NULL pointer for the mntpoint argument then the search for files always starts with '(null)/' which never matches so no recursion happens.
I have a patch which I will attempt to attach! But it may not be the correct way to fix this problem. Although it works for me.
The problem arises with the following dialog
smbclient //server/data -U backup%password
This always report 0 bytes if the root directory only contains other directories.
Created attachment 3863 [details]
Patch to client.c against release 3.2.6, use patch -p1 in root samba directory
Created attachment 3864 [details]
I think this one is the correct patch. I'm going to check this with more recursive tests. Thanks !
*** Bug 6023 has been marked as a duplicate of this bug. ***
*** Bug 5785 has been marked as a duplicate of this bug. ***
The patch will be included in 3.2.8.
Closing out bug report.
Please re-open if it's still an issue.
Thanks for reporting!