Author: trasz Date: Thu Nov 5 19:15:39 2015 New Revision: 290408 URL: https://svnweb.freebsd.org/changeset/base/290408
Log: Make rctl(8) use more reasonable buffer size for retrieving the rules. Reviewed by: mjg@ MFC after: 1 month Sponsored by: The FreeBSD Foundation Modified: head/usr.bin/rctl/rctl.c Modified: head/usr.bin/rctl/rctl.c ============================================================================== --- head/usr.bin/rctl/rctl.c Thu Nov 5 17:58:18 2015 (r290407) +++ head/usr.bin/rctl/rctl.c Thu Nov 5 19:15:39 2015 (r290408) @@ -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) _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"