summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-10-23 03:34:50 +0000
committerJeremy Allison <jra@samba.org>1998-10-23 03:34:50 +0000
commit5e6a7cd99d29d1cf068fc517272559c1cf47ea3a (patch)
tree26f9188c69683491516c6bc3ee4a5e7599552c93 /source/smbd/reply.c
parenta66c56d70e7e663f3a19cbfcc2e704653d8fc9b2 (diff)
downloadsamba-5e6a7cd99d29d1cf068fc517272559c1cf47ea3a.tar.gz
samba-5e6a7cd99d29d1cf068fc517272559c1cf47ea3a.tar.xz
samba-5e6a7cd99d29d1cf068fc517272559c1cf47ea3a.zip
Reasonably large change to give us *exactly* correct NT delete on close semantics.
This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE flag in the share modes and the new code that iterates through all open files on the same device and inode in files.c and trans2.c Also changed the code that modifies share mode entries to take generic function pointers rather than doing a specific thing so this sort of change should be easier in the future. Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index bc19f1a9313..babdd2056c4 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -3615,7 +3615,7 @@ no oplock granted on this file.\n", fsp->fnum));
/* Remove the oplock flag from the sharemode. */
lock_share_entry(fsp->conn, dev, inode, &token);
- if(remove_share_oplock(fsp, token)==False) {
+ if(remove_share_oplock(token, fsp)==False) {
DEBUG(0,("reply_lockingX: failed to remove share oplock for fnum %d, \
dev = %x, inode = %.0f\n", fsp->fnum, (unsigned int)dev, (double)inode));