summaryrefslogtreecommitdiff
path: root/source3/locking
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-01-03 18:50:13 +0000
committerJeremy Allison <jra@samba.org>2003-01-03 18:50:13 +0000
commit20f1cf6cdcf9fc74d18fb9401e627a3455183ef3 (patch)
tree04837fc1e8b278af8e351ed0f59368f279eba2fa /source3/locking
parentf5d5df9644abc08ae1b16a0826eb8cf5c3de54d1 (diff)
downloadsamba-20f1cf6cdcf9fc74d18fb9401e627a3455183ef3.tar.gz
samba-20f1cf6cdcf9fc74d18fb9401e627a3455183ef3.tar.bz2
samba-20f1cf6cdcf9fc74d18fb9401e627a3455183ef3.zip
Fix problem with "hide unreadable". stat file opens are baaack :-).
Jeremy. (This used to be commit 62038a0abf193d4dc4f37c31ac77216a10f6f326)
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 ));