Fix bug #8541 - readlink() on Linux clients fails if the symlink target is outside...
commit1041387dfcdd570706cc403b430f4e292487dc56
authorJeremy Allison <jra@samba.org>
Mon, 24 Oct 2011 22:24:04 +0000 (24 15:24 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 1 Nov 2011 18:45:52 +0000 (1 19:45 +0100)
treef921ff56beaa7a4094fd6b8cc4cbf0290914f5b2
parentdf08d03fef8e629bb48f48c5a587a220e6b9095d
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 9685fb343de057598752d8f43d43523cab5c4356)
source3/include/proto.h
source3/include/smb.h
source3/smbd/filename.c
source3/smbd/trans2.c