s3: smbd: Fix incorrect logic exposed by fix for the security bug 12496 (CVE-2017...
commit42fd34aa5ee1ad60b4593a1cddeaba4a5dbc2ea6
authorJeremy Allison <jra@samba.org>
Mon, 27 Mar 2017 17:46:47 +0000 (27 10:46 -0700)
committerKarolin Seeger <kseeger@samba.org>
Fri, 31 Mar 2017 06:25:18 +0000 (31 08:25 +0200)
tree57356e0dbdbf8cb7e4056ab55834a1177e40d9b9
parent4e28a8f7642bc44ccebf88e2b6aeeac879b41a0e
s3: smbd: Fix incorrect logic exposed by fix for the security bug 12496 (CVE-2017-2619).

In a UNIX filesystem, the names "." and ".." by definition can *never*
be symlinks - they are already reserved names.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12721

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(cherry picked from commit ae17bebd250bdde5614b2ac17e53512f19fe9b68)
source3/smbd/vfs.c