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)
committerKarolin Seeger <kseeger@samba.org>
Tue, 1 Apr 2014 07:26:37 +0000 (09:26 +0200)
There's really no reason to add such limit.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 74f8c3568a5dcdee108a0526cefac9d282361044)

source3/param/loadparm.c

index b9945ac8b9cb98d45aa994ba2b61b54c680b72cb..a339a1db52e6fe5c9251cb5fbe950307579b7d15 100644 (file)
@@ -5467,7 +5467,7 @@ int lp_min_receive_file_size(void)
        if (Globals.iminreceivefile < 0) {
                return 0;
        }
-       return MIN(Globals.iminreceivefile, BUFFER_SIZE);
+       return Globals.iminreceivefile;
 }
 
 /*******************************************************************