summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-18 20:13:09 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-18 20:13:09 +0000
commitc0f37b336bcbcab9c88c65ea8c4aabc718690535 (patch)
tree063936745823d763e19e7a5c6cc3a9dcb21a9676 /source3
parentec91716cb79ee0ac059f29cbcc331c114313f1ef (diff)
downloadsamba-c0f37b336bcbcab9c88c65ea8c4aabc718690535.tar.gz
samba-c0f37b336bcbcab9c88c65ea8c4aabc718690535.tar.bz2
samba-c0f37b336bcbcab9c88c65ea8c4aabc718690535.zip
round lock timeouts in lockingX upwards to multiples of 1 second, so a
half second timout rounds to 1 not 0 (This used to be commit 282a64b085162a58560175d14e7ceaef3d6cc9cc)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index c6a082d7d8..010f0e47d3 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3827,7 +3827,7 @@ no oplock granted on this file (%s).\n", fsp->fnum, fsp->fsp_name));
/* Setup the timeout in seconds. */
- lock_timeout = ((lock_timeout == -1) ? -1 : lock_timeout/1000);
+ lock_timeout = ((lock_timeout == -1) ? -1 : (lock_timeout+999)/1000);
/* Now do any requested locks */
data += ((large_file_format ? 20 : 10)*num_ulocks);