summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-24 04:55:28 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-24 04:55:28 +0000
commit7874b0ac171449148a370f8c9da771efb591d0be (patch)
tree348b59d49b76cfe1f3c1a56c25539a763fe23a18 /source3
parenta350db7c7cc19876045f20a84b41953fd6a346ac (diff)
downloadsamba-7874b0ac171449148a370f8c9da771efb591d0be.tar.gz
samba-7874b0ac171449148a370f8c9da771efb591d0be.tar.bz2
samba-7874b0ac171449148a370f8c9da771efb591d0be.zip
0 byte lock ranges ARE valid
(This used to be commit 5498da6664a457e4d64502d37fa887dabd9baaa0)
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/locking.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 80537c8bc1..81b2e92f68 100644
--- a/source3/locking/locking.c
+++ b/source3/locking/locking.c
@@ -108,12 +108,9 @@ BOOL do_lock(files_struct *fsp,connection_struct *conn, uint16 lock_pid,
if (!lp_locking(SNUM(conn)))
return(True);
- if (count == 0) {
- *eclass = ERRDOS;
- *ecode = ERRnoaccess;
- return False;
- }
-
+ /* 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 ));