summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-01-03 19:07:26 +0000
committerJeremy Allison <jra@samba.org>2003-01-03 19:07:26 +0000
commita26f2fbe2b320246dca43161245d66c6a01240d3 (patch)
tree9b0a346036a4157fecb4f1efec45c2452fbe3574 /source3/locking
parent7476d9c6d0624a08542e11976641d086cb2eff90 (diff)
downloadsamba-a26f2fbe2b320246dca43161245d66c6a01240d3.tar.gz
samba-a26f2fbe2b320246dca43161245d66c6a01240d3.tar.bz2
samba-a26f2fbe2b320246dca43161245d66c6a01240d3.zip
Fix problem with "hide unreadable". stat file opens are baaack :-).
Jeremy. (This used to be commit 6e0cfec16594ade6e6c499f521781348fee25040)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index e8b6f3428f..e5a72d2208 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -100,14 +100,13 @@ BOOL is_locked(files_struct *fsp,connection_struct *conn,
static NTSTATUS do_lock(files_struct *fsp,connection_struct *conn, uint16 lock_pid,
SMB_BIG_UINT count,SMB_BIG_UINT offset,enum brl_type lock_type)
{
- NTSTATUS status;
+ NTSTATUS status = NT_STATUS_LOCK_NOT_GRANTED;
if (!lp_locking(SNUM(conn)))
return NT_STATUS_OK;
/* NOTE! 0 byte long ranges ARE allowed and should be stored */
-
DEBUG(10,("do_lock: lock type %s start=%.0f len=%.0f requested for file %s\n",
lock_type_name(lock_type), (double)offset, (double)count, fsp->fsp_name ));