]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Make rctl(8) use more reasonable buffer size for retrieving the rules.
authortrasz <trasz@FreeBSD.org>
Thu, 5 Nov 2015 19:15:39 +0000 (19:15 +0000)
committertrasz <trasz@FreeBSD.org>
Thu, 5 Nov 2015 19:15:39 +0000 (19:15 +0000)
Reviewed by: mjg@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

usr.bin/rctl/rctl.c

index b5342583958db473a0cf9f9866def30ee9d637a5..9153036129719d33c2219b6ac62df443a4a8c7aa 100644 (file)
@@ -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)