svn commit: r293686 - stable/10/usr.bin/rctl

Edward Tomasz Napierala trasz at FreeBSD.org
Mon Jan 11 19:32:09 UTC 2016


Author: trasz
Date: Mon Jan 11 19:32:07 2016
New Revision: 293686
URL: https://svnweb.freebsd.org/changeset/base/293686

Log:
  MFC r290408:
  
  Make rctl(8) use more reasonable buffer size for retrieving the rules.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/usr.bin/rctl/rctl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/usr.bin/rctl/rctl.c
==============================================================================
--- stable/10/usr.bin/rctl/rctl.c	Mon Jan 11 19:29:12 2016	(r293685)
+++ stable/10/usr.bin/rctl/rctl.c	Mon Jan 11 19:32:07 2016	(r293686)
@@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
 #include <stdlib.h>
 #include <string.h>
 
-#define	RCTL_DEFAULT_BUFSIZE	4096
+#define	RCTL_DEFAULT_BUFSIZE	128 * 1024
 
 static id_t
 parse_user(const char *s)


More information about the svn-src-all mailing list