r10551: We need to check if the source path is a parent directory of the destination
commita757c6d57fc5f24951ee00070f9b9471244cef05
authorJeremy Allison <jra@samba.org>
Tue, 27 Sep 2005 17:42:11 +0000 (27 17:42 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:03:42 +0000 (10 11:03 -0500)
treecff0ecb8f72cd875475352b8f8810418345852c0
parentda1640d5a1aa8e3bbbab11423d79badeb2fbeeb8
r10551: We need to check if the source path is a parent directory of the destination
(ie. a rename of /foo/bar/baz -> /foo/bar/baz/bibble/bobble. If so we must
refuse the rename with a sharing violation. Under UNIX the above call can
*succeed* if /foo/bar/baz is a symlink to another area in the share. We
probably need to check that the client is a Windows one before disallowing
this as a UNIX client (one with UNIX extensions) can know the source is a
symlink and make this decision intelligently. Found by an excellent bug
report from <AndyLiebman@aol.com>.
Jeremy.
(This used to be commit fc311adc7964feef5bac85096727f54922d1186c)
source3/smbd/reply.c