svn commit: samba r17100 - in branches/SAMBA_3_0/source/smbd: .
jra at samba.org
jra at samba.org
Mon Jul 17 21:24:56 GMT 2006
Author: jra
Date: 2006-07-17 21:24:56 +0000 (Mon, 17 Jul 2006)
New Revision: 17100
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17100
Log:
Ooops. Fix the build...
Jeremy.
Modified:
branches/SAMBA_3_0/source/smbd/trans2.c
Changeset:
Modified: branches/SAMBA_3_0/source/smbd/trans2.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/trans2.c 2006-07-17 21:16:48 UTC (rev 17099)
+++ branches/SAMBA_3_0/source/smbd/trans2.c 2006-07-17 21:24:56 UTC (rev 17100)
@@ -4503,7 +4503,7 @@
SMB_BIG_UINT count;
SMB_BIG_UINT offset;
uint32 lock_pid;
- BOOL lock_blocking;
+ BOOL lock_blocking = False;
enum brl_type lock_type;
if (fsp == NULL || fsp->fh->fd == -1) {
@@ -4540,6 +4540,10 @@
return ERROR_NT(NT_STATUS_INVALID_PARAMETER);
}
+ if (!lp_blocking_locks(SNUM(conn))) {
+ lock_blocking = False;
+ }
+
lock_pid = IVAL(pdata, POSIX_LOCK_PID_OFFSET);
#if defined(HAVE_LONGLONG)
offset = (((SMB_BIG_UINT) IVAL(pdata,(POSIX_LOCK_START_OFFSET+4))) << 32) |
@@ -4563,9 +4567,10 @@
count,
offset,
lock_type,
+ lock_blocking ? -1 : 0,
POSIX_LOCK);
- if (lock_blocking && lp_blocking_locks(SNUM(conn)) && ERROR_WAS_LOCK_DENIED(status)) {
+ if (lock_blocking && ERROR_WAS_LOCK_DENIED(status)) {
/*
* A blocking lock was requested. Package up
* this smb into a queued request and push it
More information about the samba-cvs
mailing list