Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is failing.
commit55a9cd292b2258a979a426acd0f8a4b1225ca36f
authorJeremy Allison <jra@samba.org>
Wed, 4 Feb 2009 23:35:02 +0000 (4 15:35 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Feb 2009 08:56:54 +0000 (16 09:56 +0100)
tree135f77591876f569e941743a27aba00b64dbd91d
parent2f4814a50a5de1e02937eaf28aee8c130bb6e9c5
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.
(cherry picked from commit 249dab1abbf49b0ca45360eb9aedb20d51a80e5f)
source/smbd/filename.c
source/smbd/open.c
source/smbd/reply.c