The Samba-Bugzilla – Bug 12968
smbclient tarmode doesn't work with SMB2/3
Last modified: 2017-08-30 07:15:47 UTC
do_tar_op() uses make_remote_path() via tar_send_file().
And make_remote_path() uses cli_chkpath() and cli_mkdir(),
which both don't support SMB2/3.
(In reply to Stefan Metzmacher from comment #0)
Ok, cli_mkdir() calls cli_smb2_mkdir() but cli_chkpath() is still a problem
I think we can do an open with FILE_READ_ATTRIBUTES followed by close to simulate cli_chkpath() in SMB2. Ah, this is actually a call to cli_smb2_qpathinfo_basic().
Patch to follow...
Created attachment 13479 [details]
git-am fix for master.
Patch I've submitted to the list. Can't use cli_smb2_qpathinfo_basic() directly, but I think this works.
Created attachment 13489 [details]
git-am fix for 4.7.0.
Cherry-pick from the code that went into master.
Pushed to autobuild-v4-7-test.
Pushed to v4-7-test.
Closing out bug report.