Fix bug #Bug 6090 renaming or deleting a "not matching/resolving" symlink is failing.
authorJeremy Allison <jra@samba.org>
Thu, 5 Feb 2009 00:33:52 +0000 (16:33 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 5 Feb 2009 00:33:52 +0000 (16:33 -0800)
commite7c09d8b105d8182e7ae3948a664169dc13198e9
tree51c4abdd43cf4331e180c8ffbd5a4861daa4ee4d
parentef098bd621b544a651636db4b7d6cdd777c83d18
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.
source3/smbd/filename.c
source3/smbd/open.c
source3/smbd/reply.c