From a26f2fbe2b320246dca43161245d66c6a01240d3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 3 Jan 2003 19:07:26 +0000 Subject: Fix problem with "hide unreadable". stat file opens are baaack :-). Jeremy. (This used to be commit 6e0cfec16594ade6e6c499f521781348fee25040) --- source3/locking/locking.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/locking') 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 )); -- cgit