Fix bug #7863 - Unlink may unlink wrong file when hardlinks are involved.
authorJeremy Allison <jra@samba.org>
Tue, 25 Jan 2011 22:23:19 +0000 (14:23 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 25 Jan 2011 22:23:19 +0000 (14:23 -0800)
commit44732734cca2328a8aceb2db9b577c923920f644
tree05bc735662ba82137e96479322c4d3737bff9693
parenta65bce4e38d0b940286c7c93c226651e5fb45082
Fix bug #7863 - Unlink may unlink wrong file when hardlinks are involved.

Do this by keeping a linked list of delete on close tokens, one for
each filename that identifies a path to the dev/inode. Use the
jenkins hash of the pathname to identify the correct token.
source3/include/proto.h
source3/include/smb.h
source3/libsmb/smb_share_modes.c
source3/locking/locking.c
source3/smbd/close.c
source3/smbd/filename.c
source3/smbd/open.c
source3/smbd/smb2_getinfo.c
source3/smbd/trans2.c