]> 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>
Wed, 29 Mar 2017 08:24:14 +0000 (10:24 +0200)
commit8e3e969eeddc542385d0ccee793f71c12e8fd4b6
tree271ec348caaca11c475afeabeef61f2b016e3c84
parent9a5be8b68ba38e0d98329c44d0d5c6d4579c9bf5
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