summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-12-10 01:33:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:05:46 -0500
commit78fa625d2532da8e17ac599455f41db373f9c1ba (patch)
tree831dd972597c9536fc601c7bad2b9bbce7db7561 /source3/smbd
parent6a92f418ea36eb12b247e11656b3e8bbe367f394 (diff)
downloadsamba-78fa625d2532da8e17ac599455f41db373f9c1ba.tar.gz
samba-78fa625d2532da8e17ac599455f41db373f9c1ba.tar.bz2
samba-78fa625d2532da8e17ac599455f41db373f9c1ba.zip
r12160: The filename parameter to get_share_mode_lock is going
to become very important as we fix #3303, so make sure we don't accidently set it here. Jeremy. (This used to be commit d1a9d0587cd9a391f0193ca76cb319803c6e019f)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/close.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c
index fcea62e1aa..43049a46a4 100644
--- a/source3/smbd/close.c
+++ b/source3/smbd/close.c
@@ -192,7 +192,7 @@ static int close_normal_file(files_struct *fsp, BOOL normal_close)
* This prevents race conditions with the file being created. JRA.
*/
- lck = get_share_mode_lock(NULL, fsp->dev, fsp->inode, fsp->fsp_name);
+ lck = get_share_mode_lock(NULL, fsp->dev, fsp->inode, NULL);
if (lck == NULL) {
DEBUG(0, ("close_file: Could not get share mode lock for file %s\n", fsp->fsp_name));
@@ -305,7 +305,7 @@ static int close_directory(files_struct *fsp, BOOL normal_close)
* reference to a directory also.
*/
- lck = get_share_mode_lock(NULL, fsp->dev, fsp->inode, fsp->fsp_name);
+ lck = get_share_mode_lock(NULL, fsp->dev, fsp->inode, NULL);
if (lck == NULL) {
DEBUG(0, ("close_directory: Could not get share mode lock for %s\n", fsp->fsp_name));