]> git.ipfire.org Git - thirdparty/samba.git/commit
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>
Thu, 2 Nov 2017 12:01:21 +0000 (13:01 +0100)
commitf01aac93c47570dcbe4274c0cb02ebc78f0910d4
treecacd5fcd98bac24535e2b55bce9ad1fe8d3c8f1b
parentf36e99e3e5bee7131998c228355498c3cf8f8fdb
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