s3: smbd: Fix "follow symlink = no" regression part 2.
authorJeremy Allison <jra@samba.org>
Tue, 28 Mar 2017 00:04:58 +0000 (17:04 -0700)
committerRalph Boehme <slow@samba.org>
Tue, 28 Mar 2017 11:20:26 +0000 (13:20 +0200)
commit83e30cb48859b412b76572b6a3ba84d8fde167af
treec44dc54af8b8051bc586b4167521dd719f1e8a7c
parent037297a1c50e90a0092e3b94f472623f41ccc015
s3: smbd: Fix "follow symlink = no" regression part 2.

Add an extra paramter to cwd_name to check_reduced_name().

If cwd_name == NULL then fname is a client given path relative
to the root path of the share.

If cwd_name != NULL then fname is a client given path relative
to cwd_name. cwd_name is relative to the root path of the share.

Not yet used, logic added in the next commit.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/filename.c
source3/smbd/open.c
source3/smbd/proto.h
source3/smbd/vfs.c