Fix bug #8541 - readlink() on Linux clients fails if the symlink target is outside...
authorJeremy Allison <jra@samba.org>
Mon, 24 Oct 2011 22:24:04 +0000 (15:24 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 26 Oct 2011 17:22:44 +0000 (19:22 +0200)
commit9685fb343de057598752d8f43d43523cab5c4356
tree6f37802ee31afbb6de4c9160dff5fe808137805b
parent6ae54263b77f7663df0c390c496a139bed443b27
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.
source3/include/proto.h
source3/include/smb.h
source3/smbd/filename.c
source3/smbd/trans2.c