s3: smbd: Fix incorrect logic exposed by fix for the security bug 12496 (CVE-2017...
authorJeremy Allison <jra@samba.org>
Mon, 27 Mar 2017 17:46:47 +0000 (10:46 -0700)
committerUri Simchoni <uri@samba.org>
Tue, 28 Mar 2017 01:04:17 +0000 (03:04 +0200)
commitae17bebd250bdde5614b2ac17e53512f19fe9b68
tree7faf7cde0b7a696d3d22f431b29b7991da08e98f
parentf55399fb39da533c573b2ee82c26bed46aa55593
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>
source3/smbd/vfs.c