diff options
author | Jeremy Allison <jra@samba.org> | 2000-04-27 22:23:04 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-04-27 22:23:04 +0000 |
commit | 36db78fedad935aaa689d52d7f58e075f1f71812 (patch) | |
tree | 24811c595378d882fd0737203667cfe468d199c5 /source3/utils/torture.c | |
parent | 3d3c50326ba7f32ebb2fc683a3410dc0d1f18cdc (diff) | |
download | samba-36db78fedad935aaa689d52d7f58e075f1f71812.tar.gz samba-36db78fedad935aaa689d52d7f58e075f1f71812.tar.bz2 samba-36db78fedad935aaa689d52d7f58e075f1f71812.zip |
Fixed subtle unlocking bug when a file is closed. We need to store the
smbpid used when a file was opened in the files_struct. Else we use
the wrong global_smbpid when we are closing the file and trying to
remove the brl locks - this causes the brl locks to be left when the
file is closed as the samba_context check fails.
Jeremy.
(This used to be commit 2746e5602e493e5b022764b4b839eb4d2f14363b)
Diffstat (limited to 'source3/utils/torture.c')
-rw-r--r-- | source3/utils/torture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/torture.c b/source3/utils/torture.c index deeb304804..1a9e757977 100644 --- a/source3/utils/torture.c +++ b/source3/utils/torture.c @@ -930,7 +930,7 @@ static void run_locktest4(int dummy) fail: cli_close(&cli1, fnum1); - cli_close(&cli1, fnum2); + cli_close(&cli2, fnum2); cli_unlink(&cli1, fname); close_connection(&cli1); close_connection(&cli2); |