s3: smbclient: Ensure we call client_clean_name() before all operations on remote...
authorJeremy Allison <jra@samba.org>
Fri, 20 Oct 2017 22:09:38 +0000 (15:09 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 1 Nov 2017 09:49:25 +0000 (10:49 +0100)
commit5e86ee4607221921cc525817d5e0660111ce2e8d
tree7c1cb6e0239d422635bbad0fb8430b1acde504b2
parentf3f306c672eaeccb0d3b61b5c5f1f34fd7c542c8
s3: smbclient: Ensure we call client_clean_name() before all operations on remote pathnames.

This allows names containing .. components to be resolved on the client side
before being sent to the server. Relative names work in SMB1 but not in SMB2.
Fix both client.c and clitar.c

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13093

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit f81c34c296f87127c6d1e4dd6ea74aa75660885d)
source3/client/client.c
source3/client/clitar.c