summaryrefslogtreecommitdiff
path: root/source3/smbd/open.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-06-30 01:59:48 +0000
committerJeremy Allison <jra@samba.org>2001-06-30 01:59:48 +0000
commitd1f38ac53107d818b88cae9ee4d4442381dc4702 (patch)
tree3eeedd75a07466ad4055b5bf6ce1cbd7ea544b15 /source3/smbd/open.c
parent51b83860a17cc04d7a7cab345b24af88e14f805e (diff)
downloadsamba-d1f38ac53107d818b88cae9ee4d4442381dc4702.tar.gz
samba-d1f38ac53107d818b88cae9ee4d4442381dc4702.tar.bz2
samba-d1f38ac53107d818b88cae9ee4d4442381dc4702.zip
Fixed the first locking error (test #8 found by locktest code from
Clarion locktest. Jeremy. (This used to be commit 5c42845b5bb6fafd0ebf93fbdd23d9bf861da865)
Diffstat (limited to 'source3/smbd/open.c')
-rw-r--r--source3/smbd/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index a88dfd5573..8bfddd4c71 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -238,7 +238,7 @@ static int truncate_unless_locked(struct connection_struct *conn, files_struct *
{
SMB_BIG_UINT mask = (SMB_BIG_UINT)-1;
- if (is_locked(fsp,fsp->conn,mask,0,WRITE_LOCK)){
+ if (is_locked(fsp,fsp->conn,mask,0,WRITE_LOCK,True)){
errno = EACCES;
unix_ERR_class = ERRDOS;
unix_ERR_code = ERRlock;