Fix bug #5460. The problem is RHEL5.0 shipped a CIFS client
commit5beb4e67b24c31ba8294861d71023dff78d96042
authorJeremy Allison <jra@samba.org>
Tue, 13 May 2008 21:03:21 +0000 (13 14:03 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 15 May 2008 06:18:49 +0000 (15 08:18 +0200)
treef1c8aad8d357a53928629461e162a4794decda48
parentc8c63401423cf15ba6b56ffa80e60d4da6979a2c
Fix bug #5460. The problem is RHEL5.0 shipped a CIFS client
that sets the DFS bit on pathnames but doesn't
send DFS paths. This causes lookups to fail as
the smbd/msdfs.c code now just eats the first
two parts of the pathname and uses the rest as
the local path. The previous hostname check
used to protect us from that as we knew that
when the hostname was invalid it was a local
path (and a broken client).
I didn't want to put that check back in, but
came up with another idea - even though the
hostname can be a different one, the sharename
must be valid on this machine. So we can check
for a valid sharename instead.
Jeremy.
(cherry picked from commit 5c6ed7774220dea30c2c8a564648406b4f3eacbf)
source/smbd/conn.c
source/smbd/msdfs.c