Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is failing.
authorJeremy Allison <jra@samba.org>
Wed, 4 Feb 2009 23:35:02 +0000 (15:35 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 4 Feb 2009 23:35:02 +0000 (15:35 -0800)
commit249dab1abbf49b0ca45360eb9aedb20d51a80e5f
treefb594aa36ccbd2bbf04f8348cb3475c20ea07b28
parent2937519665be41237ee0f2c3374bea716bf95e8a
Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is failing.
Reported by Kukks. Make sure we correctly use LSTAT in all cases where
POSIX pathnames are being used. This matters when dealing with symlinks
pointing to invalid paths being renamed or deleted not all deletes and
renames are done via an nt_create open.
Jeremy.
source/smbd/filename.c
source/smbd/open.c
source/smbd/reply.c