Fix bug #8541 - readlink() on Linux clients fails if the symlink target is outside...
commita7d2815e97218c2b7eccbac25f78f2c2fae45a79
authorJeremy Allison <jra@samba.org>
Fri, 21 Oct 2011 21:12:41 +0000 (21 14:12 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 26 Oct 2011 17:28:03 +0000 (26 19:28 +0200)
treee4d495d46c16ae159a301778c84512338a025373
parent99b4d6912570cc210035b2222ad57f4279792a2d
Fix bug #8541 - readlink() on Linux clients fails if the symlink target is outside of the share.

The key is to only allow the lookup to succeed if it's a UNIX level lookup or readlink,
but disallow all other operations.
(cherry picked from commit d2ec9d20858b8e5256bf8339395c6f47793e0975)
source3/include/smb.h
source3/smbd/filename.c
source3/smbd/proto.h
source3/smbd/trans2.c