s3: client: Add new utility function client_clean_name().
authorJeremy Allison <jra@samba.org>
Sat, 21 Oct 2017 00:08:08 +0000 (00:08 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 24 Oct 2017 17:35:08 +0000 (19:35 +0200)
commitd4d9d1941bdac9993968c34cf928c645e4152fd3
tree8dc3cd5bc4b1db93fc0f8e3b6ae36125f0fbef84
parent65442e171454e62b6cf4a562c4113735213630d4
s3: client: Add new utility function client_clean_name().

Correctly canonicalizes a remote pathname removing '..'
elements before sending to a remote server. '..' elements
work in SMB1 pathnames, but not in SMB2.

Not yet used.

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/client_proto.h