Fix bug #7863 - Unlink may unlink wrong file when hardlinks are involved.
commit34952ac438db81d23caaf5c46a2c55d77bfcc97a
authorJeremy Allison <jra@samba.org>
Tue, 25 Jan 2011 22:23:19 +0000 (25 14:23 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 25 Jan 2011 22:34:22 +0000 (25 14:34 -0800)
treee2f44986334ab751dfaf47c0204275c92837a719
parentf818e57efe68a4ec6a53ce0bba384c14c9f299ef
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.
(cherry picked from commit 44732734cca2328a8aceb2db9b577c923920f644)
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