s3:param: avoid using BUFFER_SIZE to limit the lp_min_receive_file_size()
authorStefan Metzmacher <metze@samba.org>
Wed, 19 Feb 2014 12:59:07 +0000 (13:59 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 5 Mar 2014 18:06:24 +0000 (10:06 -0800)
There's really no reason to add such limit.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/param/loadparm.c

index 2114fa33a0959a7269ee8be722675de0bbf74f89..05657591e4ad743bba52eaaa164b734d57a10f00 100644 (file)
@@ -5204,7 +5204,7 @@ int lp_min_receive_file_size(void)
        if (Globals.iminreceivefile < 0) {
                return 0;
        }
-       return MIN(Globals.iminreceivefile, BUFFER_SIZE);
+       return Globals.iminreceivefile;
 }
 
 /*******************************************************************