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)
committerJeremy Allison <jra@samba.org>
Tue, 24 Oct 2017 17:35:08 +0000 (19:35 +0200)
commitf81c34c296f87127c6d1e4dd6ea74aa75660885d
treea09251a60d0e1f14cc910d7565877d844857e8fa
parentd4d9d1941bdac9993968c34cf928c645e4152fd3
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>
source3/client/client.c
source3/client/clitar.c