svn commit: samba r12160 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Sat Dec 10 01:34:00 GMT 2005


Author: jra
Date: 2005-12-10 01:33:58 +0000 (Sat, 10 Dec 2005)
New Revision: 12160

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12160

Log:
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.

Modified:
   branches/SAMBA_3_0/source/smbd/close.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/close.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/close.c	2005-12-10 01:33:56 UTC (rev 12159)
+++ branches/SAMBA_3_0/source/smbd/close.c	2005-12-10 01:33:58 UTC (rev 12160)
@@ -192,7 +192,7 @@
 	 * 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 @@
 	 * 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));



More information about the samba-cvs mailing list