svn commit: samba r17000 - in branches/SAMBA_3_0/source/locking: .

jra at samba.org jra at samba.org
Wed Jul 12 21:57:55 GMT 2006


Author: jra
Date: 2006-07-12 21:57:54 +0000 (Wed, 12 Jul 2006)
New Revision: 17000

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

Log:
Allow CIFS POSIX locks to coexist with Windows locks.
We shouldn't allow this on the same smbd, but the cifsfs
client negotiates POSIX locks then sends Windows ones.
Doh ! Can't fix shipped client code....
Jeremy.

Modified:
   branches/SAMBA_3_0/source/locking/posix.c


Changeset:
Modified: branches/SAMBA_3_0/source/locking/posix.c
===================================================================
--- branches/SAMBA_3_0/source/locking/posix.c	2006-07-12 21:57:52 UTC (rev 16999)
+++ branches/SAMBA_3_0/source/locking/posix.c	2006-07-12 21:57:54 UTC (rev 17000)
@@ -642,7 +642,7 @@
 	int *fd_array = NULL;
 	size_t count, i;
 
-	if (!lp_locking(SNUM(fsp->conn)) || !lp_posix_locking(SNUM(conn)) || lp_posix_cifsu_locktype()) {
+	if (!lp_locking(SNUM(fsp->conn)) || !lp_posix_locking(SNUM(conn))) {
 		/*
 		 * No locking or POSIX to worry about or we want POSIX semantics
 		 * which will lose all locks on all fd's open on this dev/inode,



More information about the samba-cvs mailing list