]> git.ipfire.org Git - thirdparty/samba.git/commit
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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 31 Mar 2017 06:18:29 +0000 (08:18 +0200)
commitde57712c46c43cb2940e3ead2a01dcc26c314132
treec562a8b7e0910b302722b2a123d7a8078a5be571
parented50b9f43a7b1e91f63022e0ce370c0eb322d052
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>
(cherry picked from commit 83e30cb48859b412b76572b6a3ba84d8fde167af)
source3/smbd/filename.c
source3/smbd/open.c
source3/smbd/proto.h
source3/smbd/vfs.c